/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZSelectionDAGInfo.cpp | 24 static SDValue createMemMemNode(SelectionDAG &DAG, const SDLoc &DL, unsigned Op, in createMemMemNode() argument 34 return DAG.getNode(Op, DL, VTs, Ops); in createMemMemNode() 41 static SDValue emitMemMemImm(SelectionDAG &DAG, const SDLoc &DL, unsigned Op, in emitMemMemImm() argument 46 SDValue LenAdj = DAG.getConstant(Size - Adj, DL, Dst.getValueType()); in emitMemMemImm() 47 return createMemMemNode(DAG, DL, Op, Chain, Dst, Src, LenAdj, Byte); in emitMemMemImm() 50 static SDValue emitMemMemReg(SelectionDAG &DAG, const SDLoc &DL, unsigned Op, in emitMemMemReg() argument 54 SDValue LenAdj = DAG.getNode(ISD::ADD, DL, MVT::i64, in emitMemMemReg() 55 DAG.getZExtOrTrunc(Size, DL, MVT::i64), in emitMemMemReg() 56 DAG.getConstant(0 - Adj, DL, MVT::i64)); in emitMemMemReg() 57 return createMemMemNode(DAG, DL, Op, Chain, Dst, Src, LenAdj, Byte); in emitMemMemReg() [all …]
|
H A D | SystemZISelLowering.cpp | 774 EVT SystemZTargetLowering::getSetCCResultType(const DataLayout &DL, in getSetCCResultType() argument 1082 bool SystemZTargetLowering::isLegalAddressingMode(const DataLayout &DL, in isLegalAddressingMode() argument 1476 static SDValue convertLocVTToValVT(SelectionDAG &DAG, const SDLoc &DL, in convertLocVTToValVT() argument 1482 Value = DAG.getNode(ISD::AssertSext, DL, VA.getLocVT(), Value, in convertLocVTToValVT() 1485 Value = DAG.getNode(ISD::AssertZext, DL, VA.getLocVT(), Value, in convertLocVTToValVT() 1489 Value = DAG.getNode(ISD::TRUNCATE, DL, VA.getValVT(), Value); in convertLocVTToValVT() 1495 Value = DAG.getBuildVector(MVT::v2i64, DL, {Value, DAG.getUNDEF(MVT::i64)}); in convertLocVTToValVT() 1496 Value = DAG.getNode(ISD::BITCAST, DL, VA.getValVT(), Value); in convertLocVTToValVT() 1505 static SDValue convertValVTToLocVT(SelectionDAG &DAG, const SDLoc &DL, in convertValVTToLocVT() argument 1509 return DAG.getNode(ISD::SIGN_EXTEND, DL, VA.getLocVT(), Value); in convertValVTToLocVT() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | VNCoercion.cpp | 19 const DataLayout &DL) { in canCoerceMustAliasedValueToLoad() argument 31 uint64_t StoreSize = DL.getTypeSizeInBits(StoredTy).getFixedValue(); in canCoerceMustAliasedValueToLoad() 38 if (StoreSize < DL.getTypeSizeInBits(LoadTy).getFixedValue()) in canCoerceMustAliasedValueToLoad() 41 bool StoredNI = DL.isNonIntegralPointerType(StoredTy->getScalarType()); in canCoerceMustAliasedValueToLoad() 42 bool LoadNI = DL.isNonIntegralPointerType(LoadTy->getScalarType()); in canCoerceMustAliasedValueToLoad() 61 if (StoredNI && StoreSize != DL.getTypeSizeInBits(LoadTy).getFixedValue()) in canCoerceMustAliasedValueToLoad() 78 const DataLayout &DL) { in coerceAvailableValueToLoadType() argument 79 assert(canCoerceMustAliasedValueToLoad(StoredVal, LoadedTy, DL) && in coerceAvailableValueToLoadType() 82 StoredVal = ConstantFoldConstant(C, DL); in coerceAvailableValueToLoadType() 87 uint64_t StoredValSize = DL.getTypeSizeInBits(StoredValTy).getFixedValue(); in coerceAvailableValueToLoadType() [all …]
|
H A D | Evaluator.cpp | 47 const DataLayout &DL); 60 const DataLayout &DL) { in isSimpleEnoughValueToCommitHelper() argument 73 if (!isSimpleEnoughValueToCommit(cast<Constant>(Op), SimpleConstants, DL)) in isSimpleEnoughValueToCommitHelper() 85 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL); in isSimpleEnoughValueToCommitHelper() 91 if (DL.getTypeSizeInBits(CE->getType()) != in isSimpleEnoughValueToCommitHelper() 92 DL.getTypeSizeInBits(CE->getOperand(0)->getType())) in isSimpleEnoughValueToCommitHelper() 94 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL); in isSimpleEnoughValueToCommitHelper() 101 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL); in isSimpleEnoughValueToCommitHelper() 107 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, DL); in isSimpleEnoughValueToCommitHelper() 115 const DataLayout &DL) { in isSimpleEnoughValueToCommit() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Loads.cpp | 30 const DataLayout &DL) { in isAligned() argument 31 Align BA = Base->getPointerAlignment(DL); in isAligned() 38 const Value *V, Align Alignment, const APInt &Size, const DataLayout &DL, in isDereferenceableAndAlignedPointer() argument 59 APInt Offset(DL.getIndexTypeSizeInBits(GEP->getType()), 0); in isDereferenceableAndAlignedPointer() 60 if (!GEP->accumulateConstantOffset(DL, Offset) || Offset.isNegative() || in isDereferenceableAndAlignedPointer() 74 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer() 82 BC->getOperand(0), Alignment, Size, DL, CtxI, AC, DT, TLI, in isDereferenceableAndAlignedPointer() 89 Size, DL, CtxI, AC, DT, TLI, in isDereferenceableAndAlignedPointer() 92 Size, DL, CtxI, AC, DT, TLI, in isDereferenceableAndAlignedPointer() 98 V->getPointerDereferenceableBytes(DL, CheckForNonNull, in isDereferenceableAndAlignedPointer() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/ |
H A D | LoongArchExpandAtomicPseudoInsts.cpp | 147 MachineInstr &MI, DebugLoc DL, in doAtomicBinOpExpansion() argument 162 BuildMI(LoopMBB, DL, in doAtomicBinOpExpansion() 170 BuildMI(LoopMBB, DL, TII->get(LoongArch::OR), ScratchReg) in doAtomicBinOpExpansion() 175 BuildMI(LoopMBB, DL, TII->get(LoongArch::AND), ScratchReg) in doAtomicBinOpExpansion() 178 BuildMI(LoopMBB, DL, TII->get(LoongArch::NOR), ScratchReg) in doAtomicBinOpExpansion() 183 BuildMI(LoopMBB, DL, TII->get(LoongArch::ADD_W), ScratchReg) in doAtomicBinOpExpansion() 188 BuildMI(LoopMBB, DL, TII->get(LoongArch::SUB_W), ScratchReg) in doAtomicBinOpExpansion() 193 BuildMI(LoopMBB, DL, TII->get(LoongArch::AND), ScratchReg) in doAtomicBinOpExpansion() 198 BuildMI(LoopMBB, DL, TII->get(LoongArch::OR), ScratchReg) in doAtomicBinOpExpansion() 203 BuildMI(LoopMBB, DL, TI in doAtomicBinOpExpansion() 224 insertMaskedMerge(const LoongArchInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register DestReg,Register OldValReg,Register NewValReg,Register MaskReg,Register ScratchReg) insertMaskedMerge() argument 245 doMaskedAtomicBinOpExpansion(const LoongArchInstrInfo * TII,MachineInstr & MI,DebugLoc DL,MachineBasicBlock * ThisMBB,MachineBasicBlock * LoopMBB,MachineBasicBlock * DoneMBB,AtomicRMWInst::BinOp BinOp,int Width) doMaskedAtomicBinOpExpansion() argument 317 DebugLoc DL = MI.getDebugLoc(); expandAtomicBinOp() local 350 insertSext(const LoongArchInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register ValReg,Register ShamtReg) insertSext() argument 370 DebugLoc DL = MI.getDebugLoc(); expandAtomicMinMaxOp() local 496 DebugLoc DL = MI.getDebugLoc(); expandAtomicCmpXchg() local [all...] |
H A D | LoongArchISelLowering.cpp | 464 static SDValue lowerVECTOR_SHUFFLE_VREPLVEI(const SDLoc &DL, ArrayRef<int> Mask, in lowerVECTOR_SHUFFLE_VREPLVEI() argument 481 return DAG.getNode(LoongArchISD::VREPLVEI, DL, VT, V1, in lowerVECTOR_SHUFFLE_VREPLVEI() 482 DAG.getConstant(Imm, DL, MVT::i64)); in lowerVECTOR_SHUFFLE_VREPLVEI() 506 static SDValue lowerVECTOR_SHUFFLE_VSHUF4I(const SDLoc &DL, ArrayRef<int> Mask, in lowerVECTOR_SHUFFLE_VSHUF4I() argument 550 return DAG.getNode(LoongArchISD::VSHUF4I, DL, VT, V1, in lowerVECTOR_SHUFFLE_VSHUF4I() 551 DAG.getConstant(Imm, DL, MVT::i64)); in lowerVECTOR_SHUFFLE_VSHUF4I() 569 static SDValue lowerVECTOR_SHUFFLE_VPACKEV(const SDLoc &DL, ArrayRef<int> Mask, in lowerVECTOR_SHUFFLE_VPACKEV() argument 591 return DAG.getNode(LoongArchISD::VPACKEV, DL, VT, V2, V1); in lowerVECTOR_SHUFFLE_VPACKEV() 609 static SDValue lowerVECTOR_SHUFFLE_VPACKOD(const SDLoc &DL, ArrayRef<int> Mask, in lowerVECTOR_SHUFFLE_VPACKOD() argument 631 return DAG.getNode(LoongArchISD::VPACKOD, DL, VT, V2, V1); in lowerVECTOR_SHUFFLE_VPACKOD() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEISelLowering.cpp | 371 const SDLoc &DL, SelectionDAG &DAG) const { in LowerReturn() argument 397 OutVal = DAG.getNode(ISD::SIGN_EXTEND, DL, VA.getLocVT(), OutVal); in LowerReturn() 400 OutVal = DAG.getNode(ISD::ZERO_EXTEND, DL, VA.getLocVT(), OutVal); in LowerReturn() 403 OutVal = DAG.getNode(ISD::ANY_EXTEND, DL, VA.getLocVT(), OutVal); in LowerReturn() 414 DAG.getMachineNode(TargetOpcode::IMPLICIT_DEF, DL, MVT::i64), 0); in LowerReturn() 415 SDValue Sub_f32 = DAG.getTargetConstant(VE::sub_f32, DL, MVT::i32); in LowerReturn() 416 OutVal = SDValue(DAG.getMachineNode(TargetOpcode::INSERT_SUBREG, DL, in LowerReturn() 425 Chain = DAG.getCopyToReg(Chain, DL, VA.getLocReg(), OutVal, Glue); in LowerReturn() 438 return DAG.getNode(VEISD::RET_GLUE, DL, MVT::Other, RetOps); in LowerReturn() 443 const SmallVectorImpl<ISD::InputArg> &Ins, const SDLoc &DL, in LowerFormalArguments() argument [all …]
|
H A D | VEFrameLowering.cpp | 141 DebugLoc DL; in emitPrologueInsns() local 152 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns() 157 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns() 164 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns() 169 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns() 176 BuildMI(MBB, MBBI, DL, TII.get(VE::STrii)) in emitPrologueInsns() 189 DebugLoc DL; in emitEpilogueInsns() local 200 BuildMI(MBB, MBBI, DL, TII.get(VE::LDrii), VE::SX17) in emitEpilogueInsns() 205 BuildMI(MBB, MBBI, DL, TII.get(VE::LDrii), VE::SX16) in emitEpilogueInsns() 209 BuildMI(MBB, MBBI, DL, TII.get(VE::LDrii), VE::SX15) in emitEpilogueInsns() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600ISelLowering.cpp | 430 SDLoc DL(Op); in LowerOperation() local 436 DAG.getConstant(0, DL, MVT::i32), // SWZ_X in LowerOperation() 437 DAG.getConstant(1, DL, MVT::i32), // SWZ_Y in LowerOperation() 438 DAG.getConstant(2, DL, MVT::i32), // SWZ_Z in LowerOperation() 439 DAG.getConstant(3, DL, MVT::i32) // SWZ_W in LowerOperation() 441 return DAG.getNode(AMDGPUISD::R600_EXPORT, DL, Op.getValueType(), Args); in LowerOperation() 453 SDLoc DL(Op); in LowerOperation() local 470 DAG.getConstant(TextureOp, DL, MVT::i32), in LowerOperation() 472 DAG.getConstant(0, DL, MVT::i32), in LowerOperation() 473 DAG.getConstant(1, DL, MVT::i32), in LowerOperation() [all …]
|
H A D | AMDGPUHSAMetadataStreamer.cpp | 27 const DataLayout &DL) { in getArgumentTypeAlign() argument 36 ArgAlign = DL.getABITypeAlign(Ty); in getArgumentTypeAlign() 314 const DataLayout &DL = Func->getDataLayout(); in emitKernelArg() local 328 std::tie(ArgTy, ArgAlign) = getArgumentTypeAlign(Arg, DL); in emitKernelArg() 330 emitKernelArg(DL, ArgTy, ArgAlign, in emitKernelArg() 337 const DataLayout &DL, Type *Ty, Align Alignment, StringRef ValueKind, in emitKernelArg() argument 347 auto Size = DL.getTypeAllocSize(Ty); in emitKernelArg() 395 auto &DL = M->getDataLayout(); in emitHiddenKernelArgs() local 401 emitKernelArg(DL, Int64Ty, Align(8), "hidden_global_offset_x", Offset, in emitHiddenKernelArgs() 404 emitKernelArg(DL, Int64Ty, Align(8), "hidden_global_offset_y", Offset, in emitHiddenKernelArgs() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 1517 EVT RISCVTargetLowering::getSetCCResultType(const DataLayout &DL, in getSetCCResultType() argument 1521 return getPointerTy(DL); in getSetCCResultType() 1568 auto &DL = I.getDataLayout(); in getTgtMemIntrinsic() local 1593 Info.memVT = getValueType(DL, MemTy); in getTgtMemIntrinsic() 1594 Info.align = Align(DL.getTypeSizeInBits(MemTy->getScalarType()) / 8); in getTgtMemIntrinsic() 1836 bool RISCVTargetLowering::isLegalAddressingMode(const DataLayout &DL, in isLegalAddressingMode() argument 2386 static void translateSetCCForBranch(const SDLoc &DL, SDValue &LHS, SDValue &RHS, in translateSetCCForBranch() argument 2405 LHS = DAG.getNode(ISD::SHL, DL, LHS.getValueType(), LHS, in translateSetCCForBranch() 2406 DAG.getConstant(ShAmt, DL, LHS.getValueType())); in translateSetCCForBranch() 2418 RHS = DAG.getConstant(0, DL, RHS.getValueType()); in translateSetCCForBranch() [all …]
|
H A D | RISCVExpandAtomicPseudoInsts.cpp | 260 DebugLoc DL, MachineBasicBlock *ThisMBB, in doAtomicBinOpExpansion() 277 BuildMI(LoopMBB, DL, TII->get(getLRForRMW(Ordering, Width, STI)), DestReg) in insertMaskedMerge() 283 BuildMI(LoopMBB, DL, TII->get(RISCV::AND), ScratchReg) in insertMaskedMerge() 286 BuildMI(LoopMBB, DL, TII->get(RISCV::XORI), ScratchReg) in insertMaskedMerge() 291 BuildMI(LoopMBB, DL, TII->get(getSCForRMW(Ordering, Width, STI)), ScratchReg) in insertMaskedMerge() 294 BuildMI(LoopMBB, DL, TII->get(RISCV::BNE)) in insertMaskedMerge() 300 static void insertMaskedMerge(const RISCVInstrInfo *TII, DebugLoc DL, in doMaskedAtomicBinOpExpansion() 311 BuildMI(MBB, DL, TII->get(RISCV::XOR), ScratchReg) in doMaskedAtomicBinOpExpansion() 314 BuildMI(MBB, DL, TII->get(RISCV::AND), ScratchReg) in doMaskedAtomicBinOpExpansion() 317 BuildMI(MBB, DL, TI in doMaskedAtomicBinOpExpansion() 236 doAtomicBinOpExpansion(const RISCVInstrInfo * TII,MachineInstr & MI,DebugLoc DL,MachineBasicBlock * ThisMBB,MachineBasicBlock * LoopMBB,MachineBasicBlock * DoneMBB,AtomicRMWInst::BinOp BinOp,int Width) doAtomicBinOpExpansion() argument 275 insertMaskedMerge(const RISCVInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register DestReg,Register OldValReg,Register NewValReg,Register MaskReg,Register ScratchReg) insertMaskedMerge() argument 298 doMaskedAtomicBinOpExpansion(const RISCVInstrInfo * TII,MachineInstr & MI,DebugLoc DL,MachineBasicBlock * ThisMBB,MachineBasicBlock * LoopMBB,MachineBasicBlock * DoneMBB,AtomicRMWInst::BinOp BinOp,int Width) doMaskedAtomicBinOpExpansion() argument 365 DebugLoc DL = MI.getDebugLoc(); expandAtomicBinOp() local 398 insertSext(const RISCVInstrInfo * TII,DebugLoc DL,MachineBasicBlock * MBB,Register ValReg,Register ShamtReg) insertSext() argument 418 DebugLoc DL = MI.getDebugLoc(); expandAtomicMinMaxOp() local 600 DebugLoc DL = MI.getDebugLoc(); expandAtomicCmpXchg() local [all...] |
H A D | RISCVISelDAGToDAG.cpp | 66 SDLoc DL(N); in PreprocessISelDAG() local 70 Src = CurDAG->getNode(ISD::ANY_EXTEND, DL, Subtarget->getXLenVT(), in PreprocessISelDAG() 72 Result = CurDAG->getNode(Opc, DL, VT, CurDAG->getUNDEF(VT), Src, VL); in PreprocessISelDAG() 89 SDLoc DL(N); in PreprocessISelDAG() local 98 Lo = CurDAG->getStore(Chain, DL, Lo, StackSlot, MPI, Align(8)); in PreprocessISelDAG() 101 CurDAG->getMemBasePlusOffset(StackSlot, TypeSize::getFixed(4), DL); in PreprocessISelDAG() 102 Hi = CurDAG->getStore(Chain, DL, Hi, OffsetSlot, MPI.getWithOffset(4), in PreprocessISelDAG() 105 Chain = CurDAG->getNode(ISD::TokenFactor, DL, MVT::Other, Lo, Hi); in PreprocessISelDAG() 109 CurDAG->getTargetConstant(Intrinsic::riscv_vlse, DL, MVT::i64); in PreprocessISelDAG() 117 Result = CurDAG->getMemIntrinsicNode(ISD::INTRINSIC_W_CHAIN, DL, VTs, Ops, in PreprocessISelDAG() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsISelLowering.cpp | 587 SDLoc DL(N); in performDivRemCombine() local 589 SDValue DivRem = DAG.getNode(Opc, DL, MVT::Glue, in performDivRemCombine() 596 SDValue CopyFromLo = DAG.getCopyFromReg(InChain, DL, LO, Ty, in performDivRemCombine() 605 SDValue CopyFromHi = DAG.getCopyFromReg(InChain, DL, in performDivRemCombine() 664 SDLoc DL(Op); in createFPCmp() local 670 return DAG.getNode(MipsISD::FPCmp, DL, MVT::Glue, LHS, RHS, in createFPCmp() 671 DAG.getConstant(condCodeToFCC(CC), DL, MVT::i32)); in createFPCmp() 676 SDValue False, const SDLoc &DL) { in createCMovFP() argument 681 return DAG.getNode((invert ? MipsISD::CMovFP_F : MipsISD::CMovFP_T), DL, in createCMovFP() 715 const SDLoc DL(N); in performSELECTCombine() local [all …]
|
H A D | MipsSEISelDAGToDAG.cpp | 206 void MipsSEDAGToDAGISel::selectAddE(SDNode *Node, const SDLoc &DL) const { in selectAddE() 234 SDValue CstOne = CurDAG->getTargetConstant(1, DL, MVT::i32); in selectAddE() 236 SDValue OuFlag = CurDAG->getTargetConstant(20, DL, MVT::i32); in selectAddE() 238 SDNode *DSPCtrlField = CurDAG->getMachineNode(Mips::RDDSP, DL, MVT::i32, in selectAddE() 242 Mips::EXT, DL, MVT::i32, SDValue(DSPCtrlField, 0), OuFlag, CstOne); in selectAddE() 245 CurDAG->getTargetConstant(6, DL, MVT::i32), CstOne, in selectAddE() 247 SDNode *DSPCFWithCarry = CurDAG->getMachineNode(Mips::INS, DL, MVT::i32, Ops); in selectAddE() 258 CurDAG->getMachineNode(Mips::INS, DL, MVT::i32, InsOps); in selectAddE() 260 SDNode *WrDSP = CurDAG->getMachineNode(Mips::WRDSP, DL, MVT::Glue, in selectAddE() 735 SDLoc DL(Node); in trySelect() local [all …]
|
H A D | MipsSEISelLowering.cpp | 411 SDLoc DL(Op); in lowerSELECT() local 416 SDValue Tmp = DAG.getNode(MipsISD::MTC1_D64, DL, MVT::f64, Op->getOperand(0)); in lowerSELECT() 417 return DAG.getNode(MipsISD::FSELECT, DL, ResTy, Tmp, Op->getOperand(1), in lowerSELECT() 792 static SDValue genConstMult(SDValue X, APInt C, const SDLoc &DL, EVT VT, in genConstMult() argument 796 return DAG.getConstant(0, DL, VT); in genConstMult() 804 return DAG.getNode(ISD::SHL, DL, VT, X, in genConstMult() 805 DAG.getConstant(C.logBase2(), DL, ShiftTy)); in genConstMult() 816 SDValue Op0 = genConstMult(X, Floor, DL, VT, ShiftTy, DAG); in genConstMult() 817 SDValue Op1 = genConstMult(X, C - Floor, DL, VT, ShiftTy, DAG); in genConstMult() 818 return DAG.getNode(ISD::ADD, DL, VT, Op0, Op1); in genConstMult() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 47 const DebugLoc &DL, in BuildCFI() argument 52 BuildMI(MBB, MBBI, DL, TII.get(TargetOpcode::CFI_INSTRUCTION)) in BuildCFI() 59 const DebugLoc &DL, bool IsPrologue) const { in emitCalleeSavedFrameMoves() argument 74 BuildCFI(MBB, MBBI, DL, in emitCalleeSavedFrameMoves() 77 BuildCFI(MBB, MBBI, DL, in emitCalleeSavedFrameMoves() 92 DebugLoc DL = MBBI != MBB.end() ? MBBI->getDebugLoc() : DebugLoc(); in emitPrologue() local 110 BuildMI(MBB, MBBI, DL, TII.get(MSP430::PUSH16r)) in emitPrologue() 116 BuildCFI(MBB, MBBI, DL, in emitPrologue() 123 MBB, MBBI, DL, in emitPrologue() 128 BuildMI(MBB, MBBI, DL, TII.get(MSP430::MOV16rr), MSP430::R4) in emitPrologue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kISelLowering.cpp | 215 EVT M68kTargetLowering::getSetCCResultType(const DataLayout &DL, in getSetCCResultType() argument 221 MVT M68kTargetLowering::getScalarShiftAmountTy(const DataLayout &DL, in getScalarShiftAmountTy() argument 226 return MVT::getIntegerVT(DL.getPointerSizeInBits(0)); in getScalarShiftAmountTy() 265 SelectionDAG &DAG, const SDLoc &DL) { in CreateCopyOfByValArgument() argument 266 SDValue SizeNode = DAG.getConstant(Flags.getByValSize(), DL, MVT::i32); in CreateCopyOfByValArgument() 269 Chain, DL, Dst, Src, SizeNode, Flags.getNonZeroByValAlign(), in CreateCopyOfByValArgument() 402 const SDLoc &DL) const { in EmitTailCallLoadRetAddr() 407 OutRetAddr = DAG.getLoad(VT, DL, Chain, OutRetAddr, MachinePointerInfo()); in EmitTailCallLoadRetAddr() 413 EVT PtrVT, unsigned SlotSize, int FPDiff, const SDLoc &DL) const { in EmitTailCallStoreRetAddr() 424 Chain, DL, RetFI, NewFI, in EmitTailCallStoreRetAddr() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFISelDAGToDAG.cpp | 82 bool fillGenericConstant(const DataLayout &DL, const Constant *CV, 84 bool fillConstantDataArray(const DataLayout &DL, const ConstantDataArray *CDA, 86 bool fillConstantArray(const DataLayout &DL, const ConstantArray *CA, 88 bool fillConstantStruct(const DataLayout &DL, const ConstantStruct *CS, 111 SDLoc DL(Addr); in INITIALIZE_PASS() local 114 Offset = CurDAG->getTargetConstant(0, DL, MVT::i64); in INITIALIZE_PASS() 132 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64); in INITIALIZE_PASS() 138 Offset = CurDAG->getTargetConstant(0, DL, MVT::i64); in INITIALIZE_PASS() 145 SDLoc DL(Addr); in SelectFIAddr() local 159 Offset = CurDAG->getTargetConstant(CN->getSExtValue(), DL, MVT::i64); in SelectFIAddr() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Mangler.cpp | 36 const DataLayout &DL, char Prefix) { in getNameWithPrefixImpl() argument 48 if (DL.doNotMangleLeadingQuestionMark() && Name[0] == '?') in getNameWithPrefixImpl() 52 OS << DL.getPrivateGlobalPrefix(); in getNameWithPrefixImpl() 54 OS << DL.getLinkerPrivateGlobalPrefix(); in getNameWithPrefixImpl() 64 const DataLayout &DL, in getNameWithPrefixImpl() argument 66 char Prefix = DL.getGlobalPrefix(); in getNameWithPrefixImpl() 67 return getNameWithPrefixImpl(OS, GVName, PrefixTy, DL, Prefix); in getNameWithPrefixImpl() 71 const DataLayout &DL) { in getNameWithPrefix() argument 72 return getNameWithPrefixImpl(OS, GVName, DL, Default); in getNameWithPrefix() 76 const Twine &GVName, const DataLayout &DL) { in getNameWithPrefix() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ConstantFolding.h | 48 const DataLayout &DL, 56 Constant *ConstantFoldInstruction(Instruction *I, const DataLayout &DL, 62 Constant *ConstantFoldConstant(const Constant *C, const DataLayout &DL, 78 const DataLayout &DL, 87 unsigned Predicate, Constant *LHS, Constant *RHS, const DataLayout &DL, 93 const DataLayout &DL); 98 Constant *RHS, const DataLayout &DL); 104 Constant *RHS, const DataLayout &DL, 128 const DataLayout &DL); 133 const DataLayout &DL); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiISelLowering.cpp | 396 const SmallVectorImpl<ISD::InputArg> &Ins, const SDLoc &DL, in LowerFormalArguments() argument 401 return LowerCCCArguments(Chain, CallConv, IsVarArg, Ins, DL, DAG, InVals); in LowerFormalArguments() 410 SDLoc &DL = CLI.DL; in LowerCall() local 427 OutVals, Ins, DL, DAG, InVals); in LowerCall() 437 const SmallVectorImpl<ISD::InputArg> &Ins, const SDLoc &DL, in LowerCCCArguments() argument 462 SDValue ArgValue = DAG.getCopyFromReg(Chain, DL, VReg, RegVT); in LowerCCCArguments() 468 ArgValue = DAG.getNode(ISD::AssertSext, DL, RegVT, ArgValue, in LowerCCCArguments() 471 ArgValue = DAG.getNode(ISD::AssertZext, DL, RegVT, ArgValue, in LowerCCCArguments() 475 ArgValue = DAG.getNode(ISD::TRUNCATE, DL, VA.getValVT(), ArgValue); in LowerCCCArguments() 502 VA.getLocVT(), DL, Chain, FIN, in LowerCCCArguments() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FrameLowering.cpp | 231 const DebugLoc &DL, int64_t NumBytes, in emitSPUpdate() argument 251 BuildMI(MBB, MBBI, DL, TII.get(X86::STACKALLOC_W_PROBING)).addImm(Offset); in emitSPUpdate() 267 BuildMI(MBB, MBBI, DL, TII.get(getMOVriOpcode(Is64Bit, Offset)), Reg) in emitSPUpdate() 270 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(AddSubRROpc), StackPtr) in emitSPUpdate() 284 BuildMI(MBB, MBBI, DL, TII.get(X86::PUSH64r)) in emitSPUpdate() 293 BuildMI(MBB, MBBI, DL, TII.get(getMOVriOpcode(Is64Bit, Offset)), Rax) in emitSPUpdate() 296 MachineInstr *MI = BuildMI(MBB, MBBI, DL, TII.get(X86::ADD64rr), Rax) in emitSPUpdate() 302 BuildMI(MBB, MBBI, DL, TII.get(X86::XCHG64rm), Rax).addReg(Rax), in emitSPUpdate() 305 addRegOffset(BuildMI(MBB, MBBI, DL, TII.get(X86::MOV64rm), StackPtr), in emitSPUpdate() 321 BuildMI(MBB, MBBI, DL, TII.get(Opc)) in emitSPUpdate() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64PointerAuth.cpp | 79 MachineBasicBlock::iterator MBBI, DebugLoc DL, in BuildPACM() argument 87 BuildMI(MBB, MBBI, DL, TII->get(AArch64::ADR)) in BuildPACM() 95 BuildMI(MBB, MBBI, DL, TII->get(AArch64::PACM)).setMIFlag(Flags); in BuildPACM() 109 DebugLoc DL; in signLR() local 112 BuildMI(MBB, MBBI, DL, TII->get(AArch64::EMITBKEY)) in signLR() 126 BuildMI(MBB, MBBI, DL, in signLR() 132 BuildPACM(*Subtarget, MBB, MBBI, DL, MachineInstr::FrameSetup); in signLR() 133 BuildMI(MBB, MBBI, DL, in signLR() 155 BuildMI(MBB, MBBI, DL, TII->get(TargetOpcode::CFI_INSTRUCTION)) in signLR() 159 BuildMI(MBB, MBBI, DL, TII->get(AArch64::SEH_PACSignLR)) in signLR() [all …]
|