/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/ |
D | CSETest.cpp | 47 auto MIBCst = CSEB.buildConstant(s32, 0); in TEST_F() 48 auto MIBCst1 = CSEB.buildConstant(s32, 0); in TEST_F() 62 auto Splat0 = CSEB.buildConstant(LLT::vector(2, s32), 0); in TEST_F() 119 auto MIBZero = B.buildConstant(s16, 0); in TEST_F() 132 auto MIBZeroTmp = CSEB.buildConstant(s16, 0); in TEST_F() 156 CSEB.buildConstant(s32, 0); in TEST_F() 157 auto MIBCst2 = CSEB.buildConstant(s32, 2); in TEST_F() 161 auto MIBCst3 = CSEB.buildConstant(s32, 2); in TEST_F()
|
D | ConstantFoldingTest.cpp | 29 CFB.buildAdd(s32, CFB.buildConstant(s32, 0), CFB.buildConstant(s32, 1)); in TEST_F() 36 {CFB.buildConstant(s32, 0), CFB.buildConstant(s32, 1)}); in TEST_F() 48 {CFB1.buildConstant(s32, 1), CFB1.buildConstant(s32, 1)}); in TEST_F() 56 {CFB1.buildConstant(s32, 0x01), uint64_t(8)}); in TEST_F() 64 {CFB1.buildConstant(s32, 0x80), uint64_t(8)}); in TEST_F() 77 auto MIBCst1 = B.buildConstant(s32, 16); in TEST_F() 78 auto MIBCst2 = B.buildConstant(s32, 9); in TEST_F()
|
D | MachineIRBuilderTest.cpp | 17 B.buildConstant(LLT::scalar(32), 42); in TEST_F() 20 B.buildConstant(LLT::vector(2, 32), 99); in TEST_F() 52 EXPECT_DEATH(B.buildConstant(LLT::scalar(16), APV32), in TEST_F() 54 EXPECT_DEATH(B.buildConstant(LLT::vector(2, 16), APV32), in TEST_F() 59 EXPECT_DEATH(B.buildConstant(LLT::scalar(16), *CI), in TEST_F() 61 EXPECT_DEATH(B.buildConstant(LLT::vector(2, 16), *CI), in TEST_F() 333 Register RegC0 = B.buildConstant(S32, 0).getReg(0); in TEST_F() 334 Register RegC1 = B.buildConstant(S32, 1).getReg(0); in TEST_F() 335 Register RegC2 = B.buildConstant(S32, 2).getReg(0); in TEST_F() 336 Register RegC3 = B.buildConstant(S32, 3).getReg(0); in TEST_F()
|
D | PatternMatchTest.cpp | 37 auto MIBCst = B.buildConstant(LLT::scalar(64), 42); in TEST_F() 81 auto MIBMul2 = B.buildMul(s64, Copies[0], B.buildConstant(s64, 42)); in TEST_F() 92 auto MIBSub = B.buildSub(s64, Copies[0], B.buildConstant(s64, 42)); in TEST_F() 98 {Copies[0], B.buildConstant(s64, 42)}); in TEST_F() 108 {Copies[0], B.buildConstant(s64, 42)}); in TEST_F() 402 auto FortyTwo = B.buildConstant(LLT::scalar(64), 42); in TEST_F() 422 auto Zero = B.buildConstant(LLT::scalar(64), 0); in TEST_F() 425 auto FortyTwo = B.buildConstant(LLT::scalar(64), 42); in TEST_F() 433 auto AllOnes = B.buildConstant(LLT::scalar(64), -1); in TEST_F() 436 auto FortyTwo = B.buildConstant(LLT::scalar(64), 42); in TEST_F() [all …]
|
D | LegalizerHelperTest.cpp | 760 auto InitOtherVal = B.buildConstant(s64, 999); in TEST_F() 769 auto MidOtherVal = B.buildConstant(s64, 345); in TEST_F() 966 Register Constant0 = B.buildConstant(S16, 1).getReg(0); in TEST_F() 967 Register Constant1 = B.buildConstant(S16, 2).getReg(0); in TEST_F() 1021 Merge0Ops.push_back(B.buildConstant(S3, I).getReg(0)); in TEST_F() 1030 Merge1Ops.push_back(B.buildConstant(S3, I).getReg(0)); in TEST_F() 1036 Merge2Ops.push_back(B.buildConstant(S8, I).getReg(0)); in TEST_F() 2650 auto Val0 = B.buildConstant(V4S8, 123); in TEST_F() 2651 auto Val1 = B.buildConstant(V4S8, 99); in TEST_F() 2695 auto Val0 = B.buildConstant(V4S8, 123); in TEST_F() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 295 PadReg = MIRBuilder.buildConstant(GCDTy, 0).getReg(0); in buildLCMMergePieces() 303 MIRBuilder.buildConstant(LLT::scalar(64), GCDTy.getSizeInBits() - 1); in buildLCMMergePieces() 344 AllPadReg = MIRBuilder.buildConstant(NarrowTy, 0).getReg(0); in buildLCMMergePieces() 821 auto K = MIRBuilder.buildConstant(NarrowTy, in narrowScalar() 831 auto K = MIRBuilder.buildConstant( in narrowScalar() 1122 MachineInstrBuilder Zero = MIRBuilder.buildConstant(NarrowTy, 0); in narrowScalar() 1185 MIRBuilder.buildConstant(NarrowTy, NarrowTy.getScalarSizeInBits() - 1) in narrowScalar() 1420 auto ShiftAmt = MIRBuilder.buildConstant(WideTy, Offset); in widenScalarMergeValues() 1583 auto ShiftAmt = MIRBuilder.buildConstant(SrcTy, DstSize * I); in widenScalarUnmergeValues() 1714 ShiftTy, Src, MIRBuilder.buildConstant(ShiftTy, Offset)); in widenScalarExtract() [all …]
|
D | CSEMIRBuilder.cpp | 192 return buildConstant(DstOps[0], Cst->getSExtValue()); in buildInstr() 203 return buildConstant(Dst, MaybeCst->getSExtValue()); in buildInstr() 234 MachineInstrBuilder CSEMIRBuilder::buildConstant(const DstOp &Res, in buildConstant() function in CSEMIRBuilder 238 return MachineIRBuilder::buildConstant(Res, Val); in buildConstant() 243 return buildSplatVector(Res, buildConstant(Ty.getElementType(), Val)); in buildConstant() 257 MachineInstrBuilder NewMIB = MachineIRBuilder::buildConstant(Res, Val); in buildConstant()
|
D | CombinerHelper.cpp | 927 auto True = Builder.buildConstant( in applyOptBrCondByInvertingCond() 1035 return MIB.buildConstant(Ty, SplatVal).getReg(0); in getMemsetValue() 1042 return MIB.buildConstant(Ty, 0).getReg(0); in getMemsetValue() 1049 auto MagicMI = MIB.buildConstant(ExtType, Magic); in getMemsetValue() 1160 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), DstOff); in optimizeMemset() 1261 Offset = MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset) in optimizeMemcpy() 1357 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove() 1374 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove() 1534 auto NewOffset = MIB.buildConstant(OffsetTy, MatchInfo.Imm); in applyPtrAddImmedChain() 1602 Builder.buildConstant(MI.getOperand(0), 0); in applyShiftImmedChain() [all …]
|
D | MachineIRBuilder.cpp | 204 auto Cst = buildConstant(ValueTy, Value); in materializePtrAdd() 214 buildConstant(MaskReg, maskTrailingZeros<uint64_t>(NumBits)); in buildMaskLowPtrBits() 243 MachineInstrBuilder MachineIRBuilder::buildConstant(const DstOp &Res, in buildConstant() function in MachineIRBuilder 264 MachineInstrBuilder MachineIRBuilder::buildConstant(const DstOp &Res, in buildConstant() function in MachineIRBuilder 269 return buildConstant(Res, *CI); in buildConstant() 298 MachineInstrBuilder MachineIRBuilder::buildConstant(const DstOp &Res, in buildConstant() function in MachineIRBuilder 301 return buildConstant(Res, *CI); in buildConstant() 371 auto ConstOffset = buildConstant(OffsetTy, Offset); in buildLoadFromOffset() 644 auto Zero = buildConstant(LLT::scalar(64), 0); in buildShuffleSplat()
|
D | IRTranslator.cpp | 770 auto FirstCst = MIB.buildConstant(SwitchTy, JTH.First); in emitJumpTableHeader() 859 auto Diff = MIB.buildConstant(CmpTy, High - Low); in emitSwitchCase() 999 Register MinValReg = MIB.buildConstant(SwitchOpTy, B.First).getReg(0); in emitBitTestHeader() 1029 auto RangeCst = MIB.buildConstant(SwitchOpTy, B.Range); in emitBitTestHeader() 1055 MIB.buildConstant(SwitchTy, countTrailingZeros(B.Mask)); in emitBitTestCase() 1062 MIB.buildConstant(SwitchTy, countTrailingOnes(B.Mask)); in emitBitTestCase() 1067 auto CstOne = MIB.buildConstant(SwitchTy, 1); in emitBitTestCase() 1071 auto CstMask = MIB.buildConstant(SwitchTy, B.Mask); in emitBitTestCase() 1073 auto CstZero = MIB.buildConstant(SwitchTy, 0); in emitBitTestCase() 1504 auto OffsetMIB = MIRBuilder.buildConstant({OffsetTy}, Offset); in translateGetElementPtr() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | CSEMIRBuilder.cpp | 162 return buildConstant(DstOps[0], Cst->getSExtValue()); in buildInstr() 173 return buildConstant(Dst, MaybeCst->getSExtValue()); in buildInstr() 204 MachineInstrBuilder CSEMIRBuilder::buildConstant(const DstOp &Res, in buildConstant() function in CSEMIRBuilder 208 return MachineIRBuilder::buildConstant(Res, Val); in buildConstant() 213 return buildSplatVector(Res, buildConstant(Ty.getElementType(), Val)); in buildConstant() 227 MachineInstrBuilder NewMIB = MachineIRBuilder::buildConstant(Res, Val); in buildConstant()
|
D | LegalizerHelper.cpp | 638 auto K = MIRBuilder.buildConstant(NarrowTy, in narrowScalar() 648 auto K = MIRBuilder.buildConstant( in narrowScalar() 677 MIRBuilder.buildConstant(LLT::scalar(64), NarrowTy.getSizeInBits() - 1); in narrowScalar() 694 Register ZeroReg = MIRBuilder.buildConstant(SrcTy, 0).getReg(0); in narrowScalar() 972 MachineInstrBuilder Zero = MIRBuilder.buildConstant(NarrowTy, 0); in narrowScalar() 1037 MIRBuilder.buildConstant(NarrowTy, NarrowTy.getScalarSizeInBits() - 1) in narrowScalar() 1212 auto ShiftAmt = MIRBuilder.buildConstant(WideTy, Offset); in widenScalarMergeValues() 1321 auto ShiftAmt = MIRBuilder.buildConstant(NewSrcTy, SizeDiff * I); in widenScalarUnmergeValues() 1384 ShiftTy, Src, MIRBuilder.buildConstant(ShiftTy, Offset)); in widenScalarExtract() 1460 {NewOp, MIRBuilder.buildConstant(WideTy, Mask.getZExtValue())}); in widenScalar() [all …]
|
D | CombinerHelper.cpp | 943 return MIB.buildConstant(Ty, SplatVal).getReg(0); in getMemsetValue() 955 auto MagicMI = MIB.buildConstant(ExtType, Magic); in getMemsetValue() 1062 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), DstOff); in optimizeMemset() 1166 Offset = MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset) in optimizeMemcpy() 1264 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove() 1281 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove() 1380 auto NewOffset = MIB.buildConstant(OffsetTy, MatchInfo.Imm); in applyPtrAddImmedChain()
|
/external/llvm-project/llvm/lib/Target/AArch64/GISel/ |
D | AArch64PostLegalizerCombiner.cpp | 101 auto Elt0 = B.buildExtractVectorElement(Ty, Src, B.buildConstant(s64, 0)); in applyExtractVecEltPairwiseAdd() 102 auto Elt1 = B.buildExtractVectorElement(Ty, Src, B.buildConstant(s64, 1)); in applyExtractVecEltPairwiseAdd() 208 auto Shift = B.buildConstant(LLT::scalar(64), ShiftAmt); in matchAArch64MulConstCombine() 218 B.buildSub(DstReg, B.buildConstant(Ty, 0), Res); in matchAArch64MulConstCombine() 223 B.buildShl(DstReg, Res, B.buildConstant(LLT::scalar(64), TrailingZeroes)); in matchAArch64MulConstCombine()
|
D | AArch64PostLegalizerLowering.cpp | 374 MIRBuilder.buildConstant(LLT::scalar(32), MatchInfo.SrcOps[2].getImm()); in applyEXT() 414 auto ImmDef = MIB.buildConstant(LLT::scalar(32), Imm); in applyVAshrLshrImm() 543 auto Cst = MIB.buildConstant(MRI.cloneVirtualRegister(RHS.getReg()), in applyAdjustICmpImmAndPred() 606 auto Lane = B.buildConstant(LLT::scalar(64), MatchInfo.second); in applyDupLane()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | ConstantFoldingMIRBuilder.h | 54 return buildConstant(Dst, MaybeCst->getSExtValue()); 65 return buildConstant(Dst, MaybeCst->getSExtValue());
|
D | CSEMIRBuilder.h | 98 using MachineIRBuilder::buildConstant; 100 MachineInstrBuilder buildConstant(const DstOp &Res,
|
D | LegalizationArtifactCombiner.h | 87 Builder.buildConstant( in tryCombineAnyExt() 116 auto MIBMask = Builder.buildConstant( in tryCombineZExt() 131 Builder.buildConstant( in tryCombineZExt() 184 Builder.buildConstant( in tryCombineTrunc() 222 Builder.buildConstant(DstReg, 0); in tryFoldImplicitDef()
|
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | ConstantFoldingMIRBuilder.h | 54 return buildConstant(Dst, MaybeCst->getSExtValue()); 65 return buildConstant(Dst, MaybeCst->getSExtValue());
|
D | CSEMIRBuilder.h | 98 using MachineIRBuilder::buildConstant; 100 MachineInstrBuilder buildConstant(const DstOp &Res,
|
D | LegalizationArtifactCombiner.h | 87 Builder.buildConstant( in tryCombineAnyExt() 120 auto Mask = Builder.buildConstant( in tryCombineZExt() 148 Builder.buildConstant( in tryCombineZExt() 217 Builder.buildConstant( in tryCombineTrunc() 329 Builder.buildConstant(DstReg, 0); in tryFoldImplicitDef()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULegalizerInfo.cpp | 1212 auto ShiftAmt = B.buildConstant(S32, WidthM1 + 1); in getSegmentAperture() 1293 auto HighAddr = B.buildConstant( in legalizeAddrSpaceCast() 1305 auto SegmentNull = B.buildConstant(DstTy, NullVal); in legalizeAddrSpaceCast() 1306 auto FlatNull = B.buildConstant(SrcTy, 0); in legalizeAddrSpaceCast() 1328 B.buildConstant(SrcTy, TM.getNullPointerValue(SrcAS)); in legalizeAddrSpaceCast() 1330 B.buildConstant(DstTy, TM.getNullPointerValue(DestAS)); in legalizeAddrSpaceCast() 1418 auto Const0 = B.buildConstant(S32, FractBits - 32); in extractF64Exponent() 1419 auto Const1 = B.buildConstant(S32, ExpBits); in extractF64Exponent() 1425 return B.buildSub(S32, ExpPart, B.buildConstant(S32, 1023)); in extractF64Exponent() 1451 const auto SignBitMask = B.buildConstant(S32, UINT32_C(1) << 31); in legalizeIntrinsicTrunc() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPULegalizerInfo.cpp | 1738 auto ShiftAmt = B.buildConstant(S32, WidthM1 + 1); in getSegmentAperture() 1806 auto HighAddr = B.buildConstant( in legalizeAddrSpaceCast() 1818 auto SegmentNull = B.buildConstant(DstTy, NullVal); in legalizeAddrSpaceCast() 1819 auto FlatNull = B.buildConstant(SrcTy, 0); in legalizeAddrSpaceCast() 1839 B.buildConstant(SrcTy, TM.getNullPointerValue(SrcAS)); in legalizeAddrSpaceCast() 1841 B.buildConstant(DstTy, TM.getNullPointerValue(DestAS)); in legalizeAddrSpaceCast() 1939 auto Const0 = B.buildConstant(S32, FractBits - 32); in extractF64Exponent() 1940 auto Const1 = B.buildConstant(S32, ExpBits); in extractF64Exponent() 1947 return B.buildSub(S32, ExpPart, B.buildConstant(S32, 1023)); in extractF64Exponent() 1971 const auto SignBitMask = B.buildConstant(S32, UINT32_C(1) << 31); in legalizeIntrinsicTrunc() [all …]
|
D | AMDGPURegisterBankInfo.cpp | 138 auto True = B.buildConstant(S32, Opc == AMDGPU::G_SEXT ? -1 : 1); in applyBank() 139 auto False = B.buildConstant(S32, 0); in applyBank() 1271 auto WaveSize = B.buildConstant(LLT::scalar(32), ST.getWavefrontSizeLog2()); in applyMappingDynStackAlloc() 1338 VOffsetReg = B.buildConstant(S32, 0).getReg(0); in setBufferOffsets() 1339 SOffsetReg = B.buildConstant(S32, SOffset).getReg(0); in setBufferOffsets() 1359 SOffsetReg = B.buildConstant(S32, SOffset).getReg(0); in setBufferOffsets() 1367 VOffsetReg = B.buildConstant(S32, 0).getReg(0); in setBufferOffsets() 1405 SOffsetReg = B.buildConstant(S32, 0).getReg(0); in setBufferOffsets() 1467 Register VIndex = B.buildConstant(S32, 0).getReg(0); in applyMappingSBufferLoad() 1564 auto OffsetMask = B.buildConstant(S32, maskTrailingOnes<unsigned>(6)); in applyMappingBFEIntrinsic() [all …]
|
/external/llvm-project/llvm/lib/Target/Mips/ |
D | MipsLegalizerInfo.cpp | 377 auto C_P2HalfMemSize = MIRBuilder.buildConstant(s32, P2HalfMemSize); in legalizeCustom() 382 auto C_P2Half_InBits = MIRBuilder.buildConstant(s32, P2HalfMemSize * 8); in legalizeCustom() 406 auto C_P2HalfMemSize = MIRBuilder.buildConstant(s32, P2HalfMemSize); in legalizeCustom() 441 auto C_HiMask = MIRBuilder.buildConstant(s32, UINT32_C(0x43300000)); in legalizeCustom()
|