Home
last modified time | relevance | path

Searched refs:getZExtValue (Results 1 – 25 of 275) sorted by relevance

1234567891011

/external/llvm/lib/Target/SystemZ/
DSystemZOperands.td151 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 …]
DSystemZTargetTransformInfo.cpp54 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()
DSystemZISelDAGToDAG.cpp701 uint64_t AndMask = MaskNode->getZExtValue(); in detectOrAndInsertion()
711 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) in detectOrAndInsertion()
753 uint64_t Mask = MaskNode->getZExtValue(); in expandRxSBG()
760 Mask |= KnownZero.getZExtValue(); in expandRxSBG()
777 uint64_t Mask = ~MaskNode->getZExtValue(); in expandRxSBG()
784 Mask &= ~KnownOne.getZExtValue(); in expandRxSBG()
800 RxSBG.Rotate = (RxSBG.Rotate + CountNode->getZExtValue()) & 63; in expandRxSBG()
838 uint64_t Count = CountNode->getZExtValue(); in expandRxSBG()
865 uint64_t Count = CountNode->getZExtValue(); in expandRxSBG()
934 if (MaskN->getZExtValue() != RISBG.Mask) { in tryRISBGZero()
[all …]
DSystemZSelectionDAGInfo.cpp60 Chain, Dst, Src, CSize->getZExtValue()); in EmitTargetCodeForMemcpy()
91 uint64_t Bytes = CSize->getZExtValue(); in EmitTargetCodeForMemset()
99 uint64_t ByteVal = CByte->getZExtValue(); in EmitTargetCodeForMemset()
135 if (CByte && CByte->getZExtValue() == 0) in EmitTargetCodeForMemset()
192 uint64_t Bytes = CSize->getZExtValue(); in EmitTargetCodeForMemcmp()
/external/llvm/lib/Analysis/
DMemoryLocation.cpp70 Size = C->getValue().getZExtValue(); in getForSource()
83 Size = C->getValue().getZExtValue(); in getForDest()
130 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument()
138 Arg, cast<ConstantInt>(II->getArgOperand(0))->getZExtValue(), AATags); in getForArgument()
143 Arg, cast<ConstantInt>(II->getArgOperand(1))->getZExtValue(), AATags); in getForArgument()
169 return MemoryLocation(Arg, LenCI->getZExtValue(), AATags); in getForArgument()
DTypeBasedAliasAnalysis.cpp196 return mdconst::extract<ConstantInt>(Node->getOperand(2))->getZExtValue(); in getOffset()
238 ->getZExtValue(); in getParent()
251 ->getZExtValue(); in getParent()
263 ->getZExtValue(); in getParent()
/external/llvm/include/llvm/IR/
DStatepoint.h102 ->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()
358 return cast<ConstantInt>(RelocateCS.getArgument(1))->getZExtValue(); in getBasePtrIndex()
364 return cast<ConstantInt>(RelocateCS.getArgument(2))->getZExtValue(); in getDerivedPtrIndex()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp86 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted()
132 if (CI->getZExtValue() > NumBits) { in CanEvaluateShifted()
133 unsigned LowBits = TypeWidth - CI->getZExtValue(); in CanEvaluateShifted()
157 if (CI->getValue().ult(TypeWidth) && CI->getZExtValue() > NumBits) { in CanEvaluateShifted()
158 unsigned LowBits = CI->getZExtValue() - NumBits; in CanEvaluateShifted()
228 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue()
253 assert(CI->getZExtValue() > NumBits); in GetShiftedValue()
255 CI->getZExtValue() - NumBits)); in GetShiftedValue()
269 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue()
293 assert(CI->getZExtValue() > NumBits); in GetShiftedValue()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp57 if ((Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost()
164 (isShiftedMask_32(Imm.getZExtValue()) || in getIntImmCost()
165 isShiftedMask_32(~Imm.getZExtValue()))) in getIntImmCost()
169 (isShiftedMask_64(Imm.getZExtValue()) || in getIntImmCost()
170 isShiftedMask_64(~Imm.getZExtValue()))) in getIntImmCost()
174 if (UnsignedFree && isUInt<16>(Imm.getZExtValue())) in getIntImmCost()
177 if (ShiftedFree && (Imm.getZExtValue() & 0xFFFF) == 0) in getIntImmCost()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp198 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue(); in getOperandRegClass()
203 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue(); in getOperandRegClass()
437 Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue(); in Select()
440 Imm = C->getZExtValue(); in Select()
487 uint32_t OffsetVal = Offset->getZExtValue(); in Select()
488 uint32_t WidthVal = Width->getZExtValue(); in Select()
642 IntPtr = CurDAG->getIntPtrConstant(Cst->getZExtValue() / 4, SDLoc(Addr), in SelectGlobalValueConstantOffset()
665 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ()
668 Offset = CurDAG->getTargetConstant(IMMOffset->getZExtValue(), SDLoc(Addr), in SelectADDRVTX_READ()
673 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DExternalFunctions.cpp139 *I8Ptr = (int8_t) AV.IntVal.getZExtValue(); in ffiValueFor()
144 *I16Ptr = (int16_t) AV.IntVal.getZExtValue(); in ffiValueFor()
149 *I32Ptr = (int32_t) AV.IntVal.getZExtValue(); in ffiValueFor()
154 *I64Ptr = (int64_t) AV.IntVal.getZExtValue(); in ffiValueFor()
364 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf()
380 sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal.getZExtValue()); in lle_X_sprintf()
382 sprintf(Buffer, FmtBuf,uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf()
464 size_t len = (size_t)Args[2].IntVal.getZExtValue(); in lle_X_memset()
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp55 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()
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp62 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in GetOffsetFromIndex()
231 int64_t Size = cast<ConstantInt>(MSI->getLength())->getZExtValue(); in addMemSet()
614 srcArraySize->getZExtValue(); in performCallSlotOptzn()
629 destArraySize->getZExtValue(); in performCallSlotOptzn()
785 if (!MDepLen || !MLen || MDepLen->getZExtValue() < MLen->getZExtValue()) in processMemCpyMemCpyDependence()
880 Align = MinAlign(SrcSizeC->getZExtValue(), DestAlign); in processMemSetMemCpyDependence()
929 if (!MemSetSize || CopySize->getZExtValue() > MemSetSize->getZExtValue()) in performMemCpyToMemSetOptzn()
990 CopySize->getZExtValue(), M->getAlignment(), in processMemCpy()
1015 if (LTSize->getZExtValue() >= CopySize->getZExtValue()) in processMemCpy()
1092 if (!C1 || C1->getValue().getZExtValue() < ByValSize) in processByValArgument()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILISelDAGToDAG.cpp340 if (isInt<8>(OffsetNode->getZExtValue() >> 2)) { in SelectADDR8BitOffset()
342 Offset = CurDAG->getTargetConstant(OffsetNode->getZExtValue() >> 2, in SelectADDR8BitOffset()
362 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ()
365 Offset = CurDAG->getTargetConstant(IMMOffset->getZExtValue(), MVT::i32); in SelectADDRVTX_READ()
369 && isInt<16>(IMMOffset->getZExtValue())) { in SelectADDRVTX_READ()
373 Offset = CurDAG->getTargetConstant(IMMOffset->getZExtValue(), MVT::i32); in SelectADDRVTX_READ()
DAMDILPeepholeOptimizer.cpp354 mSTM->device()->getDeviceFlag() & CV->getZExtValue()); in optimizeCallInst()
542 ? dyn_cast<ConstantInt>(LHSMask)->getZExtValue() : 0); in optimizeBitInsert()
544 ? dyn_cast<ConstantInt>(RHSMask)->getZExtValue() : 0); in optimizeBitInsert()
546 ? dyn_cast<ConstantInt>(LHSShift)->getZExtValue() : 0); in optimizeBitInsert()
548 ? dyn_cast<ConstantInt>(RHSShift)->getZExtValue() : 0); in optimizeBitInsert()
768 uint32_t maskVal = (uint32_t)AndCI->getZExtValue(); in optimizeBitExtract()
773 uint32_t shiftVal = (uint32_t)ShiftIC->getZExtValue(); in optimizeBitExtract()
790 uint32_t maskVal = (uint32_t)dyn_cast<ConstantInt>(AndMask)->getZExtValue(); in optimizeBitExtract()
799 uint32_t shiftVal = (uint32_t)dyn_cast<ConstantInt>(ShrVal)->getZExtValue(); in optimizeBitExtract()
/external/llvm/lib/Target/NVPTX/
DNVPTXMCExpr.cpp43 std::string HexStr(utohexstr(API.getZExtValue())); in printImpl()
46 OS << utohexstr(API.getZExtValue()); in printImpl()
/external/llvm/lib/IR/
DAutoUpgrade.cpp522 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
527 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
532 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
537 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
542 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
547 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
552 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
557 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall()
570 unsigned Imm = cast <ConstantInt>(CI->getArgOperand(2))->getZExtValue(); in UpgradeIntrinsicCall()
587 unsigned Imm = cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue(); in UpgradeIntrinsicCall()
[all …]
DModule.cpp447 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getDwarfVersion()
454 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getCodeViewFlag()
470 cast<ConstantInt>(Val->getValue())->getZExtValue()); in getPICLevel()
486 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getMaximumFunctionCount()
/external/llvm/unittests/ADT/
DAPSIntTest.cpp47 EXPECT_EQ(7u, APSInt::get(7).getZExtValue()); in TEST()
52 EXPECT_EQ(UINT64_C(0) - 7, APSInt::get(-7).getZExtValue()); in TEST()
58 EXPECT_EQ(7u, APSInt::getUnsigned(7).getZExtValue()); in TEST()
63 EXPECT_EQ(UINT64_C(0) - 7, APSInt::getUnsigned(-7).getZExtValue()); in TEST()
DAPIntTest.cpp61 EXPECT_EQ(((uint64_t)-2)&((1ull<<33) -1), i33minus2.getZExtValue()); in TEST()
100 EXPECT_EQ((uint64_t)~0ull, u64max.getZExtValue()); in TEST()
110 EXPECT_EQ(0u, zero.getZExtValue()); in TEST()
120 EXPECT_EQ(1u, one.getZExtValue()); in TEST()
132 EXPECT_EQ(1u, neg_one.getZExtValue()); in TEST()
133 EXPECT_EQ(0u, zero.getZExtValue()); in TEST()
135 EXPECT_EQ(1u, one.getZExtValue()); in TEST()
136 EXPECT_EQ(0u, two.getZExtValue()); in TEST()
237 auto uv1 = arg1.getZExtValue(); in TEST()
238 auto uv2 = arg2.getZExtValue(); in TEST()
/external/llvm/lib/Transforms/Instrumentation/
DInstrProfiling.cpp191 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in computeNumValueSiteCounts()
192 uint64_t Index = Ind->getIndex()->getZExtValue(); in computeNumValueSiteCounts()
210 uint64_t ValueKind = Ind->getValueKind()->getZExtValue(); in lowerValueProfileInst()
211 uint64_t Index = Ind->getIndex()->getZExtValue(); in lowerValueProfileInst()
228 uint64_t Index = Inc->getIndex()->getZExtValue(); in lowerIncrement()
317 uint64_t NumCounters = Inc->getNumCounters()->getZExtValue(); in getOrCreateRegionCounters()
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AddressingModes.h371 uint32_t Sign = Imm.lshr(15).getZExtValue() & 1; in getFP16Imm()
373 int32_t Mantissa = Imm.getZExtValue() & 0x3ff; // 10 bits in getFP16Imm()
397 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm()
399 int64_t Mantissa = Imm.getZExtValue() & 0x7fffff; // 23 bits in getFP32Imm()
425 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm()
427 uint64_t Mantissa = Imm.getZExtValue() & 0xfffffffffffffULL; in getFP64Imm()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMAddressingModes.h657 uint32_t Sign = Imm.lshr(31).getZExtValue() & 1; in getFP32Imm()
659 int64_t Mantissa = Imm.getZExtValue() & 0x7fffff; // 23 bits in getFP32Imm()
685 uint64_t Sign = Imm.lshr(63).getZExtValue() & 1; in getFP64Imm()
687 uint64_t Mantissa = Imm.getZExtValue() & 0xfffffffffffffULL; in getFP64Imm()
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp70 ConstantSize->getZExtValue() > Subtarget.getMaxInlineSizeThreshold()) { in EmitTargetCodeForMemset()
102 uint64_t SizeVal = ConstantSize->getZExtValue(); in EmitTargetCodeForMemset()
111 uint64_t Val = ValC->getZExtValue() & 255; in EmitTargetCodeForMemset()
208 uint64_t SizeVal = ConstantSize->getZExtValue(); in EmitTargetCodeForMemcpy()
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp333 uint64_t Element = cast<ConstantInt>(COp)->getZExtValue(); in DecodePSHUFBMask()
423 uint64_t Element = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMILPMask()
568 uint64_t Element = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMVMask()
579 uint64_t Element = cast<ConstantInt>(C)->getZExtValue(); in DecodeVPERMVMask()
600 uint64_t Element = cast<ConstantInt>(COp)->getZExtValue(); in DecodeVPERMV3Mask()

1234567891011