LLVM API Documentation
#include <SystemZISelLowering.h>
Definition at line 56 of file SystemZISelLowering.h.
| SystemZTargetLowering::SystemZTargetLowering | ( | SystemZTargetMachine & | TM | ) | [explicit] |
Definition at line 40 of file SystemZISelLowering.cpp.
References llvm::TargetLowering::addLegalFPImmediate(), llvm::TargetLowering::addRegisterClass(), llvm::lltok::APFloat, llvm::ISD::BIT_CONVERT, llvm::ISD::BR_CC, llvm::ISD::BR_JT, llvm::ISD::BRCOND, llvm::TargetLowering::computeRegisterProperties(), llvm::ISD::ConstantPool, llvm::ISD::CTLZ, llvm::ISD::CTPOP, llvm::ISD::CTTZ, llvm::TargetLowering::Custom, llvm::ISD::DYNAMIC_STACKALLOC, llvm::TargetLowering::Expand, llvm::ISD::EXTLOAD, llvm::MVT::f32, llvm::MVT::f64, llvm::ISD::FCOS, llvm::ISD::FP_TO_UINT, llvm::ISD::FREM, llvm::ISD::FSIN, llvm::SystemZTargetMachine::getRegisterInfo(), llvm::ISD::GlobalAddress, llvm::MVT::i1, llvm::MVT::i32, llvm::MVT::i64, llvm::ISD::JumpTable, llvm::TargetLowering::Legal, llvm::ISD::MULHS, llvm::MVT::Other, llvm::TargetLowering::Promote, llvm::TargetLowering::SchedulingForLatency, llvm::ISD::SDIV, llvm::ISD::SELECT, llvm::ISD::SELECT_CC, llvm::TargetLowering::setBooleanContents(), llvm::ISD::SETCC, llvm::TargetLowering::setLoadExtAction(), llvm::TargetLowering::setOperationAction(), llvm::TargetLowering::setSchedulingPreference(), llvm::TargetLowering::setShiftAmountType(), llvm::TargetLowering::setStackPointerRegisterToSaveRestore(), llvm::TargetLowering::setTruncStoreAction(), llvm::ISD::SEXTLOAD, llvm::ISD::SHL_PARTS, llvm::ISD::SIGN_EXTEND_INREG, llvm::ISD::SMUL_LOHI, llvm::ISD::SRA_PARTS, llvm::ISD::SREM, llvm::ISD::SRL_PARTS, llvm::ISD::UDIV, llvm::ISD::UINT_TO_FP, llvm::ISD::UMUL_LOHI, llvm::ISD::UREM, llvm::UseSoftFloat, llvm::MVT::v2i32, llvm::MVT::v2i64, llvm::TargetLowering::ZeroOrOneBooleanContent, and llvm::ISD::ZEXTLOAD.
| SDValue SystemZTargetLowering::LowerOperation | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) | [virtual] |
LowerOperation - Provide custom lowering hooks for some operations.
Reimplemented from llvm::TargetLowering.
Definition at line 158 of file SystemZISelLowering.cpp.
References llvm::ISD::BR_CC, llvm::ISD::ConstantPool, llvm::SDValue::getOpcode(), llvm::ISD::GlobalAddress, llvm::ISD::JumpTable, llvm_unreachable, LowerBR_CC(), LowerConstantPool(), LowerGlobalAddress(), LowerJumpTable(), LowerSELECT_CC(), and llvm::ISD::SELECT_CC.
| const char * SystemZTargetLowering::getTargetNodeName | ( | unsigned | Opcode | ) | const [virtual] |
getTargetNodeName - This method returns the name of a target specific DAG node.
Reimplemented from llvm::TargetLowering.
Definition at line 761 of file SystemZISelLowering.cpp.
References llvm::SystemZISD::BRCOND, llvm::SystemZISD::CALL, llvm::SystemZISD::CMP, llvm::SystemZISD::PCRelativeWrapper, llvm::SystemZISD::RET_FLAG, llvm::SystemZISD::SELECT, and llvm::SystemZISD::UCMP.
| virtual unsigned llvm::SystemZTargetLowering::getFunctionAlignment | ( | const Function * | F | ) | const [inline, virtual] |
getFunctionAlignment - Return the Log2 alignment of this function.
Implements llvm::TargetLowering.
Definition at line 68 of file SystemZISelLowering.h.
| std::pair< unsigned, const TargetRegisterClass * > SystemZTargetLowering::getRegForInlineAsmConstraint | ( | const std::string & | Constraint, | |
| EVT | VT | |||
| ) | const [virtual] |
getRegForInlineAsmConstraint - Given a physical register constraint (e.g. {edx}), return the register number and the register class for the register.
Given a register class constraint, like 'r', if this corresponds directly to an LLVM register class, return a register of 0 and the register class pointer.
This should only be used for C_Register constraints. On error, this returns a register number of 0 and a null register class pointer..
Reimplemented from llvm::TargetLowering.
Definition at line 192 of file SystemZISelLowering.cpp.
References llvm::TargetLowering::getRegForInlineAsmConstraint(), llvm::MVT::i128, and llvm::MVT::i32.
| TargetLowering::ConstraintType SystemZTargetLowering::getConstraintType | ( | const std::string & | Constraint | ) | const [virtual] |
getConstraintType - Given a constraint letter, return the type of constraint it is for this target.
Reimplemented from llvm::TargetLowering.
Definition at line 178 of file SystemZISelLowering.cpp.
References llvm::TargetLowering::C_RegisterClass, and llvm::TargetLowering::getConstraintType().
| SDValue SystemZTargetLowering::LowerBR_CC | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 663 of file SystemZISelLowering.cpp.
References llvm::SystemZISD::BRCOND, Dest, EmitCmp(), llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), LHS, and RHS.
Referenced by LowerOperation().
| SDValue SystemZTargetLowering::LowerSELECT_CC | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 677 of file SystemZISelLowering.cpp.
References EmitCmp(), llvm::MVT::Flag, llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getOperand(), llvm::SDValue::getValueType(), llvm::SelectionDAG::getVTList(), LHS, llvm::SmallVectorImpl< T >::push_back(), RHS, llvm::SystemZISD::SELECT, llvm::SmallVectorImpl< T >::size(), and VTs.
Referenced by LowerOperation().
| SDValue SystemZTargetLowering::LowerGlobalAddress | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 698 of file SystemZISelLowering.cpp.
References llvm::ISD::ADD, llvm::SelectionDAG::getConstant(), llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getEntryNode(), llvm::PseudoSourceValue::getGOT(), llvm::SelectionDAG::getLoad(), llvm::SelectionDAG::getNode(), llvm::TargetLowering::getPointerTy(), llvm::TargetMachine::getRelocationModel(), llvm::SelectionDAG::getTargetGlobalAddress(), llvm::TargetLowering::getTargetMachine(), GV, llvm::SystemZSubtarget::GVRequiresExtraLoad(), llvm::SystemZII::MO_GOTENT, llvm::SystemZISD::PCRelativeWrapper, and llvm::Reloc::PIC_.
Referenced by LowerOperation().
| SDValue SystemZTargetLowering::LowerJumpTable | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 737 of file SystemZISelLowering.cpp.
References llvm::SDValue::getDebugLoc(), llvm::JumpTableSDNode::getIndex(), llvm::SelectionDAG::getNode(), llvm::TargetLowering::getPointerTy(), llvm::SelectionDAG::getTargetJumpTable(), JT, and llvm::SystemZISD::PCRelativeWrapper.
Referenced by LowerOperation().
| SDValue SystemZTargetLowering::LowerConstantPool | ( | SDValue | Op, | |
| SelectionDAG & | DAG | |||
| ) |
Definition at line 749 of file SystemZISelLowering.cpp.
References CP, llvm::ConstantPoolSDNode::getAlignment(), llvm::ConstantPoolSDNode::getConstVal(), llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::ConstantPoolSDNode::getOffset(), llvm::TargetLowering::getPointerTy(), llvm::SelectionDAG::getTargetConstantPool(), and llvm::SystemZISD::PCRelativeWrapper.
Referenced by LowerOperation().
| SDValue SystemZTargetLowering::EmitCmp | ( | SDValue | LHS, | |
| SDValue | RHS, | |||
| ISD::CondCode | CC, | |||
| SDValue & | SystemZCC, | |||
| SelectionDAG & | DAG | |||
| ) |
Definition at line 583 of file SystemZISelLowering.cpp.
References llvm::SystemZISD::CMP, llvm::SystemZCC::E, llvm::MVT::Flag, llvm::SelectionDAG::getConstant(), llvm::SDValue::getDebugLoc(), llvm::SelectionDAG::getNode(), llvm::SDValue::getValueType(), llvm::SystemZCC::H, llvm::SystemZCC::HE, llvm::MVT::i32, llvm::EVT::isFloatingPoint(), llvm::SystemZCC::L, llvm::SystemZCC::LE, llvm::SystemZCC::LH, llvm_unreachable, llvm::SystemZCC::NE, llvm::SystemZCC::NH, llvm::SystemZCC::NHE, llvm::SystemZCC::NL, llvm::SystemZCC::NLE, llvm::SystemZCC::NLH, llvm::SystemZCC::NO, llvm::SystemZCC::O, llvm::ISD::SETEQ, llvm::ISD::SETGE, llvm::ISD::SETGT, llvm::ISD::SETLE, llvm::ISD::SETLT, llvm::ISD::SETNE, llvm::ISD::SETO, llvm::ISD::SETOEQ, llvm::ISD::SETOGE, llvm::ISD::SETOGT, llvm::ISD::SETOLE, llvm::ISD::SETOLT, llvm::ISD::SETONE, llvm::ISD::SETUEQ, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, llvm::ISD::SETULT, llvm::ISD::SETUNE, llvm::ISD::SETUO, and llvm::SystemZISD::UCMP.
Referenced by LowerBR_CC(), and LowerSELECT_CC().
| MachineBasicBlock * SystemZTargetLowering::EmitInstrWithCustomInserter | ( | MachineInstr * | MI, | |
| MachineBasicBlock * | BB | |||
| ) | const [virtual] |
Reimplemented from llvm::TargetLowering.
Definition at line 779 of file SystemZISelLowering.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::MachineBasicBlock::addSuccessor(), llvm::BuildMI(), llvm::MachineFunction::CreateMachineBasicBlock(), llvm::MachineFunction::DeleteMachineInstr(), F, llvm::TargetInstrInfo::get(), llvm::MachineBasicBlock::getBasicBlock(), llvm::SystemZInstrInfo::getBrCond(), llvm::MachineInstr::getDebugLoc(), llvm::MachineOperand::getImm(), llvm::SystemZTargetMachine::getInstrInfo(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getReg(), llvm::MachineFunction::insert(), PHI, TII, and llvm::MachineBasicBlock::transferSuccessors().