/external/llvm-project/llvm/unittests/CodeGen/GlobalISel/ |
D | KnownBitsTest.cpp | 25 EXPECT_EQ((uint64_t)1, Res.One.getZExtValue()); in TEST_F() 26 EXPECT_EQ((uint64_t)0xfe, Res.Zero.getZExtValue()); in TEST_F() 29 EXPECT_EQ(Res.One.getZExtValue(), Res2.One.getZExtValue()); in TEST_F() 30 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 48 EXPECT_EQ((uint64_t)0, Res.One.getZExtValue()); in TEST_F() 49 EXPECT_EQ((uint64_t)0, Res.Zero.getZExtValue()); in TEST_F() 55 EXPECT_EQ(Res.One.getZExtValue(), Res2.One.getZExtValue()); in TEST_F() 56 EXPECT_EQ(Res.Zero.getZExtValue(), Res2.Zero.getZExtValue()); in TEST_F() 84 EXPECT_EQ((uint64_t)2, Res.One.getZExtValue()); in TEST_F() 85 EXPECT_EQ((uint64_t)0xfc, Res.Zero.getZExtValue()); in TEST_F() [all …]
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZOperands.td | 178 uint64_t Value = N->getZExtValue() & 0x000000000000FFFFULL; 184 uint64_t Value = (N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16; 190 uint64_t Value = (N->getZExtValue() & 0x0000FFFF00000000ULL) >> 32; 196 uint64_t Value = (N->getZExtValue() & 0xFFFF000000000000ULL) >> 48; 202 uint64_t Value = N->getZExtValue() & 0x00000000FFFFFFFFULL; 208 uint64_t Value = N->getZExtValue() >> 32; 214 uint64_t Value = (-N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16; 219 uint64_t Value = -N->getZExtValue() & 0x00000000FFFFFFFFULL; 225 return CurDAG->getTargetConstant(int8_t(N->getZExtValue()), SDLoc(N), 231 return CurDAG->getTargetConstant(uint8_t(N->getZExtValue()), SDLoc(N), [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZOperands.td | 178 uint64_t Value = N->getZExtValue() & 0x000000000000FFFFULL; 184 uint64_t Value = (N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16; 190 uint64_t Value = (N->getZExtValue() & 0x0000FFFF00000000ULL) >> 32; 196 uint64_t Value = (N->getZExtValue() & 0xFFFF000000000000ULL) >> 48; 202 uint64_t Value = N->getZExtValue() & 0x00000000FFFFFFFFULL; 208 uint64_t Value = N->getZExtValue() >> 32; 214 uint64_t Value = (-N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16; 219 uint64_t Value = -N->getZExtValue() & 0x00000000FFFFFFFFULL; 225 return CurDAG->getTargetConstant(int8_t(N->getZExtValue()), SDLoc(N), 231 return CurDAG->getTargetConstant(uint8_t(N->getZExtValue()), SDLoc(N), [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZOperands.td | 151 uint64_t Value = N->getZExtValue() & 0x000000000000FFFFULL; 157 uint64_t Value = (N->getZExtValue() & 0x00000000FFFF0000ULL) >> 16; 163 uint64_t Value = (N->getZExtValue() & 0x0000FFFF00000000ULL) >> 32; 169 uint64_t Value = (N->getZExtValue() & 0xFFFF000000000000ULL) >> 48; 175 uint64_t Value = N->getZExtValue() & 0x00000000FFFFFFFFULL; 181 uint64_t Value = N->getZExtValue() >> 32; 187 return CurDAG->getTargetConstant(int8_t(N->getZExtValue()), SDLoc(N), 193 return CurDAG->getTargetConstant(uint8_t(N->getZExtValue()), SDLoc(N), 199 return CurDAG->getTargetConstant(N->getZExtValue() & 0xfe, SDLoc(N), 205 return CurDAG->getTargetConstant(N->getZExtValue() & 0xfff, SDLoc(N), [all …]
|
D | SystemZTargetTransformInfo.cpp | 54 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 57 if ((Imm.getZExtValue() & 0xffffffff) == 0) in getIntImmCost() 105 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 113 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 131 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost() 134 if ((Imm.getZExtValue() & 0xffffffff) == 0) in getIntImmCost() 144 if (isUInt<32>(~Imm.getZExtValue())) in getIntImmCost() 147 if ((Imm.getZExtValue() & 0xffffffff) == 0xffffffff) in getIntImmCost() 152 if (TII->isRxSBGMask(Imm.getZExtValue(), BitSize, Start, End)) in getIntImmCost() 206 if (isUInt<32>(Imm.getZExtValue())) in getIntImmCost()
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | ValueTrackingTest.cpp | 102 EXPECT_EQ(Known.One.getZExtValue(), One); in expectKnownBits() 103 EXPECT_EQ(Known.Zero.getZExtValue(), Zero); in expectKnownBits() 1154 EXPECT_EQ(Known.Zero.getZExtValue(), 31u); in TEST_F() 1155 EXPECT_EQ(Known.One.getZExtValue(), 0u); in TEST_F() 1173 EXPECT_EQ(Known.Zero.getZExtValue(), 31u); in TEST_F() 1174 EXPECT_EQ(Known.One.getZExtValue(), 0u); in TEST_F() 1191 EXPECT_EQ(Known.Zero.getZExtValue(), 31u); in TEST_F() 1192 EXPECT_EQ(Known.One.getZExtValue(), 0u); in TEST_F() 1207 EXPECT_EQ(Known.Zero.getZExtValue(), ~(65536llu - 1)); in TEST_F() 1208 EXPECT_EQ(Known.One.getZExtValue(), 0u); in TEST_F() [all …]
|
D | UnrollAnalyzerTest.cpp | 110 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 1U); in TEST() 115 EXPECT_FALSE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 121 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), TripCount); in TEST() 126 EXPECT_TRUE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 219 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 5U); in TEST() 222 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 1U); in TEST() 264 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 0U); in TEST() 314 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 259U); in TEST() 317 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 259U); in TEST() 320 EXPECT_EQ(cast<ConstantInt>((*I3).second)->getZExtValue(), 3U); in TEST()
|
/external/llvm/unittests/Analysis/ |
D | UnrollAnalyzer.cpp | 110 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 1U); in TEST() 115 EXPECT_FALSE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 121 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), TripCount); in TEST() 126 EXPECT_TRUE(cast<ConstantInt>((*I2).second)->getZExtValue()); in TEST() 219 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 5U); in TEST() 222 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 1U); in TEST() 264 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 0U); in TEST() 314 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), 259U); in TEST() 317 EXPECT_EQ(cast<ConstantInt>((*I2).second)->getZExtValue(), 259U); in TEST() 320 EXPECT_EQ(cast<ConstantInt>((*I3).second)->getZExtValue(), 3U); in TEST()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 116 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForSource() 137 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForDest() 168 return MemoryLocation(Arg, LocationSize::precise(LenCI->getZExtValue()), in getForArgument() 179 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument() 206 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument() 240 return MemoryLocation(Arg, LocationSize::precise(LenCI->getZExtValue()), in getForArgument() 249 return MemoryLocation(Arg, LocationSize::precise(LenCI->getZExtValue()), in getForArgument() 256 return MemoryLocation(Arg, LocationSize::precise(LenCI->getZExtValue()), in getForArgument() 266 Arg, LocationSize::upperBound(LenCI->getZExtValue()), AATags); in getForArgument()
|
/external/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 70 Size = C->getValue().getZExtValue(); in getForSource() 83 Size = C->getValue().getZExtValue(); in getForDest() 113 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument() 121 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument() 126 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument() 153 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument()
|
/external/llvm-project/llvm/lib/Target/AArch64/ |
D | AArch64MachineFunctionInfo.cpp | 45 if (Sign->getZExtValue()) { in GetSignReturnAddress() 48 return {true, All->getZExtValue()}; in GetSignReturnAddress() 70 return BKey->getZExtValue(); in ShouldSignWithBKey() 93 BranchTargetEnforcement = BTE->getZExtValue(); in AArch64FunctionInfo()
|
/external/llvm/lib/Target/X86/ |
D | X86ShuffleDecodeConstantPool.cpp | 77 uint64_t Element = APElt.getLoBits(8).getZExtValue(); in DecodePSHUFBMask() 148 uint64_t Element = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMILPMask() 204 uint64_t Selector = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMIL2PMask() 293 ShuffleMask.push_back((int)Index.getZExtValue()); in DecodeVPPERMMask() 318 ShuffleMask.push_back(Element.getZExtValue()); in DecodeVPERMVMask() 327 uint64_t Element = cast<ConstantInt>(C)->getZExtValue(); in DecodeVPERMVMask() 351 ShuffleMask.push_back(Element.getZExtValue()); in DecodeVPERMV3Mask()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 97 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForSource() 118 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForDest() 148 return MemoryLocation(Arg, LocationSize::precise(LenCI->getZExtValue()), in getForArgument() 159 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument() 171 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument() 205 return MemoryLocation(Arg, LocationSize::precise(LenCI->getZExtValue()), in getForArgument()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelDAGToDAG.cpp | 207 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass() 212 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass() 395 Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue(); in Select() 398 Imm = C->getZExtValue(); in Select() 446 uint32_t OffsetVal = Offset->getZExtValue(); in Select() 447 uint32_t WidthVal = Width->getZExtValue(); in Select() 512 IntPtr = CurDAG->getIntPtrConstant(Cst->getZExtValue() / 4, SDLoc(Addr), in SelectGlobalValueConstantOffset() 535 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ() 538 Offset = CurDAG->getTargetConstant(IMMOffset->getZExtValue(), SDLoc(Addr), in SelectADDRVTX_READ() 543 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ() [all …]
|
/external/llvm/include/llvm/IR/ |
D | Statepoint.h | 102 ->getZExtValue(); in getFlags() 108 return cast<ConstantInt>(IDVal)->getZExtValue(); in getID() 115 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue(); in getNumPatchBytes() 155 return cast<ConstantInt>(NumCallArgsVal)->getZExtValue(); in getNumCallArgs() 189 return cast<ConstantInt>(NumGCTransitionArgs)->getZExtValue(); in getNumTotalGCTransitionArgs() 211 return cast<ConstantInt>(NumVMSArgs)->getZExtValue(); in getNumTotalVMSArgs() 365 return cast<ConstantInt>(getArgOperand(1))->getZExtValue(); in getBasePtrIndex() 371 return cast<ConstantInt>(getArgOperand(2))->getZExtValue(); in getDerivedPtrIndex()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Statepoint.h | 114 ->getZExtValue(); in getFlags() 120 return cast<ConstantInt>(IDVal)->getZExtValue(); in getID() 127 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue(); in getNumPatchBytes() 166 return cast<ConstantInt>(NumCallArgsVal)->getZExtValue(); in getNumCallArgs() 200 return cast<ConstantInt>(NumGCTransitionArgs)->getZExtValue(); in getNumTotalGCTransitionArgs() 222 return cast<ConstantInt>(NumVMSArgs)->getZExtValue(); in getNumTotalVMSArgs() 374 return cast<ConstantInt>(getArgOperand(1))->getZExtValue(); in getBasePtrIndex() 380 return cast<ConstantInt>(getArgOperand(2))->getZExtValue(); in getDerivedPtrIndex()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | Statepoint.h | 88 return cast<ConstantInt>(getArgOperand(IDPos))->getZExtValue(); in getID() 95 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue(); in getNumPatchBytes() 102 return cast<ConstantInt>(getArgOperand(NumCallArgsPos))->getZExtValue(); in getNumCallArgs() 106 return cast<ConstantInt>(getArgOperand(FlagsPos))->getZExtValue(); in getFlags() 273 return cast<ConstantInt>(getArgOperand(1))->getZExtValue(); in getBasePtrIndex() 279 return cast<ConstantInt>(getArgOperand(2))->getZExtValue(); in getDerivedPtrIndex()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 64 if ((Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost() 171 (isShiftedMask_32(Imm.getZExtValue()) || in getIntImmCost() 172 isShiftedMask_32(~Imm.getZExtValue()))) in getIntImmCost() 176 (isShiftedMask_64(Imm.getZExtValue()) || in getIntImmCost() 177 isShiftedMask_64(~Imm.getZExtValue()))) in getIntImmCost() 181 if (UnsignedFree && isUInt<16>(Imm.getZExtValue())) in getIntImmCost() 184 if (ShiftedFree && (Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 71 unsigned SecondShiftAmt = SecondShiftConst->getZExtValue(); in canEvaluateShiftedShift() 131 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted() 227 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() 252 assert(CI->getZExtValue() > NumBits); in GetShiftedValue() 254 CI->getZExtValue() - NumBits)); in GetShiftedValue() 270 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue() 294 assert(CI->getZExtValue() > NumBits); in GetShiftedValue() 296 CI->getZExtValue() - NumBits)); in GetShiftedValue() 340 CanEvaluateShifted(Op0, COp1->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant() 345 I, GetShiftedValue(Op0, COp1->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | MisExpect.cpp | 121 const uint64_t Index = IndexCint->getZExtValue(); in verifyMisExpect() 122 const uint64_t LikelyBranchWeight = LikelyCInt->getZExtValue(); in verifyMisExpect() 123 const uint64_t UnlikelyBranchWeight = UnlikelyCInt->getZExtValue(); in verifyMisExpect() 168 RealWeights[i - 1] = Value->getZExtValue(); in checkFrontendInstrumentation()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelDAGToDAG.cpp | 353 if (ShiftAmt->getZExtValue() == 16) { in isExtractHiElt() 595 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass() 600 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass() 836 Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue(); in Select() 839 Imm = C->getZExtValue(); in Select() 866 uint32_t OffsetVal = Offset->getZExtValue(); in Select() 867 uint32_t WidthVal = Width->getZExtValue(); in Select() 971 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() 975 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() 979 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelDAGToDAG.cpp | 358 if (ShiftAmt->getZExtValue() == 16) { in isExtractHiElt() 600 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass() 605 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass() 823 Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue(); in Select() 826 Imm = C->getZExtValue(); in Select() 853 uint32_t OffsetVal = Offset->getZExtValue(); in Select() 854 uint32_t WidthVal = Width->getZExtValue(); in Select() 1001 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() 1005 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() 1009 Offset = CurDAG->getTargetConstant(C->getZExtValue(), DL, MVT::i32); in SelectADDRIndirect() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMAddressingModes.h | 654 uint32_t Sign = Imm.lshr(15).getZExtValue() & 1; in getFP16Imm() 656 int64_t Mantissa = Imm.getZExtValue() & 0x3ff; // 10 bits in getFP16Imm() 680 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm() 682 int64_t Mantissa = Imm.getZExtValue() & 0x7fffff; // 23 bits in getFP32Imm() 708 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm() 710 uint64_t Mantissa = Imm.getZExtValue() & 0xfffffffffffffULL; in getFP64Imm()
|
/external/llvm-project/llvm/lib/IR/ |
D | Module.cpp | 502 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getNumberRegisterParameters() 509 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getDwarfVersion() 516 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getCodeViewFlag() 539 cast<ConstantInt>(Val->getValue())->getZExtValue()); in getPICLevel() 553 cast<ConstantInt>(Val->getValue())->getZExtValue()); in getPIELevel() 567 cast<ConstantInt>(Val->getValue())->getZExtValue()); in getCodeModel() 597 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getSemanticInterposition() 608 return Val && cast<ConstantInt>(Val->getValue())->getZExtValue() == 0; in noSemanticInterposition() 617 return Val && (cast<ConstantInt>(Val->getValue())->getZExtValue() > 0); in getRtLibUseGOT()
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | OrcMCJITReplacement.cpp | 55 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 68 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 77 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); in runFunction()
|