Home
last modified time | relevance | path

Searched refs:ConstantInt (Results 1 – 25 of 612) sorted by relevance

12345678910>>...25

/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DConstant.cpp24 ConstantInt *ConstantInt::getTrue(Context &Ctx) { in getTrue()
25 auto *LLVMC = llvm::ConstantInt::getTrue(Ctx.LLVMCtx); in getTrue()
26 return cast<ConstantInt>(Ctx.getOrCreateConstant(LLVMC)); in getTrue()
28 ConstantInt *ConstantInt::getFalse(Context &Ctx) { in getFalse()
29 auto *LLVMC = llvm::ConstantInt::getFalse(Ctx.LLVMCtx); in getFalse()
30 return cast<ConstantInt>(Ctx.getOrCreateConstant(LLVMC)); in getFalse()
32 ConstantInt *ConstantInt::getBool(Context &Ctx, bool V) { in getBool()
33 auto *LLVMC = llvm::ConstantInt::getBool(Ctx.LLVMCtx, V); in getBool()
34 return cast<ConstantInt>(Ctx.getOrCreateConstant(LLVMC)); in getBool()
36 Constant *ConstantInt::getTrue(Type *Ty) { in getTrue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp63 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
65 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
71 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
73 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
75 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
77 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
80 ConstantInt::get(V->getType(), 0xFF0000), in LowerBSWAP()
83 ConstantInt::get(V->getType(), 0xFF00), in LowerBSWAP()
91 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56), in LowerBSWAP()
93 Value *Tmp7 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 40), in LowerBSWAP()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMDBuilder.cpp65 Vals[i + Offset] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
81 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount()
86 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount()
100 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)); in createRange()
125 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo))); in createCallbackEncoding()
128 Ops.push_back(createConstant(ConstantInt::get(Int64, ArgNo, true))); in createCallbackEncoding()
131 Ops.push_back(createConstant(ConstantInt::get(Int1, VarArgArePassed))); in createCallbackEncoding()
143 cast<ConstantInt>(NewCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings()
156 cast<ConstantInt>(OldCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings()
222 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode()
[all …]
H A DConstantFold.cpp78 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
118 return ConstantInt::get(DestTy, FP->getValueAPF().bitcastToAPInt()); in FoldBitCast()
183 Constant *C = ConstantExpr::getExtractElement(V, ConstantInt::get(Ty, i)); in ConstantFoldCastInstruction()
219 return ConstantInt::get(DestTy, IntVal); in ConstantFoldCastInstruction()
224 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction()
234 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction()
236 return ConstantInt::get(DestTy, CI->getValue().zext(BitWidth)); in ConstantFoldCastInstruction()
240 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction()
242 return ConstantInt::get(DestTy, CI->getValue().sext(BitWidth)); in ConstantFoldCastInstruction()
246 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in ConstantFoldCastInstruction()
[all …]
H A DConstants.cpp92 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNullValue()
109 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isAllOnesValue()
126 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isOneValue()
143 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNotOneValue()
171 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isMinSignedValue()
188 if (const ConstantInt *CI = dyn_cast<ConstantInt>(this)) in isNotMinSignedValue()
361 if (isa<ConstantInt>(this) || isa<ConstantFP>(this)) in containsConstantExpression()
376 return ConstantInt::get(Ty, 0); in getNullValue()
407 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue()
422 return ConstantInt::get(Ty->getContext(), in getAllOnesValue()
[all …]
H A DModule.cpp324 if (ConstantInt *Behavior = mdconst::dyn_extract_or_null<ConstantInt>(MD)) { in isValidModFlagBehavior()
342 auto *MFBConstant = mdconst::extract<ConstantInt>(Flag->getOperand(0)); in getModuleFlagsMetadata()
379 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)), in addModuleFlag()
390 addModuleFlag(Behavior, Key, ConstantInt::get(Int32Ty, Val)); in addModuleFlag()
395 assert(mdconst::hasa<ConstantInt>(Node->getOperand(0)) && in addModuleFlag()
420 setModuleFlag(Behavior, Key, ConstantInt::get(Int32Ty, Val)); in setModuleFlag()
580 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getNumberRegisterParameters()
587 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getDwarfVersion()
592 return Val && cast<ConstantInt>(Val->getValue())->isOne(); in isDwarf64()
599 return cast<ConstantInt>(Val->getValue())->getZExtValue(); in getCodeViewFlag()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp146 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
157 ConstantInt *Index = nullptr;
221 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
228 ConstantInt *Idx, Value *S,
293 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride, in isAddFoldable()
315 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(Idx); in hasOnlyOneNonZeroIndex()
347 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in allocateCandidatesAndFindBasis()
413 ConstantInt *Idx = nullptr; in allocateCandidatesAndFindBasisForAdd()
420 Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue()); in allocateCandidatesAndFindBasisForAdd()
424 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
[all …]
H A DLowerExpectIntrinsic.cpp87 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
118 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef()
163 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef()
177 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue(); in handlePhiDef()
216 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef()
291 ConstantInt *CmpConstOperand = nullptr; in handleBrSelExpect()
300 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect()
322 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
H A DSeparateConstOffsetFromGEP.cpp559 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto()
563 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto()
629 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find()
699 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain()
701 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
733 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
734 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
750 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset()
803 return isa<CastInst>(U) || isa<ConstantInt>(U); in allowsPreservingNUW()
880 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DOffloadWrapper.cpp120 auto *Zero = ConstantInt::get(getSizeTTy(M), 0u); in createBinDesc()
150 auto *Begin = ConstantInt::get(getSizeTTy(M), Entry->ImageOffset); in createBinDesc()
152 ConstantInt::get(getSizeTTy(M), Entry->ImageOffset + Entry->ImageSize); in createBinDesc()
181 ConstantInt::get(Type::getInt32Ty(C), ImagesInits.size()), ImagesB, in createBinDesc()
287 ConstantInt::get(Type::getInt32Ty(C), IsHIP ? HIPFatMagic : CudaFatMagic), in createFatbinDesc()
288 ConstantInt::get(Type::getInt32Ty(C), 1), in createFatbinDesc()
413 {ConstantInt::get(Type::getInt32Ty(C), 0), in createRegisterGlobalsFunction()
414 ConstantInt::get(Type::getInt32Ty(C), 4)}); in createRegisterGlobalsFunction()
418 {ConstantInt::get(Type::getInt32Ty(C), 0), in createRegisterGlobalsFunction()
419 ConstantInt::get(Type::getInt32Ty(C), 8)}); in createRegisterGlobalsFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryLocation.cpp175 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
183 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
199 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument()
226 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument()
270 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in getForArgument()
282 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in getForArgument()
303 if (const ConstantInt *LenCI = in getForArgument()
304 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
312 if (const ConstantInt *LenCI = in getForArgument()
313 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
[all …]
H A DTypeBasedAliasAnalysis.cpp184 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(2)); in isTypeImmutable()
232 return mdconst::extract<ConstantInt>(Node->getOperand(2))->getZExtValue(); in getOffset()
238 return mdconst::extract<ConstantInt>(Node->getOperand(3))->getZExtValue(); in getSize()
248 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(OpNo)); in isTypeImmutable()
325 : mdconst::extract<ConstantInt>(Operands[2])->getZExtValue(); in getField()
343 mdconst::extract<ConstantInt>(Operands[Idx + 1])->getZExtValue(); in getField()
355 mdconst::extract<ConstantInt>(Operands[TheIdx + 1])->getZExtValue(); in getField()
546 auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0)); in createAccessTag()
553 ConstantAsMetadata::get(ConstantInt::get(Int64, AccessSize)); in createAccessTag()
767 ConstantInt *InnerOffset = mdconst::extract<ConstantInt>(MD->getOperand(i)); in shiftTBAAStruct()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp23 Cs.push_back(ConstantInt::get(IntTy, 0)); in makeConstantsWithType()
24 Cs.push_back(ConstantInt::get(IntTy, 1)); in makeConstantsWithType()
25 Cs.push_back(ConstantInt::get(IntTy, 42)); in makeConstantsWithType()
26 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
27 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType()
28 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
29 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType()
30 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp26 ConstantInt *CopyLen, Align SrcAlign, Align DstAlign, bool SrcIsVolatile, in createMemCpyLoopKnownSize()
73 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB); in createMemCpyLoopKnownSize()
100 LoopIndex, ConstantInt::get(TypeOfCopyLen, LoopOpSize)); in createMemCpyLoopKnownSize()
104 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize()
131 Int8Type, SrcAddr, ConstantInt::get(TypeOfCopyLen, BytesCopied)); in createMemCpyLoopKnownSize()
140 Int8Type, DstAddr, ConstantInt::get(TypeOfCopyLen, BytesCopied)); in createMemCpyLoopKnownSize()
217 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize()
236 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB); in createMemCpyLoopUnknownSize()
261 LoopIndex, ConstantInt::get(CopyLenType, LoopOpSize)); in createMemCpyLoopUnknownSize()
289 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize()
[all …]
H A DLowerSwitch.cpp71 ConstantInt *Low;
72 ConstantInt *High;
75 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange()
86 const ConstantInt *CI1 = cast<const ConstantInt>(C1.Low); in operator ()()
87 const ConstantInt *CI2 = cast<const ConstantInt>(C2.High); in operator ()()
154 BasicBlock *NewLeafBlock(CaseRange &Leaf, Value *Val, ConstantInt *LowerBound, in NewLeafBlock()
155 ConstantInt *UpperBound, BasicBlock *OrigBlock, in NewLeafBlock()
226 BasicBlock *SwitchConvert(CaseItr Begin, CaseItr End, ConstantInt *LowerBound, in SwitchConvert()
227 ConstantInt *UpperBound, Value *Val, in SwitchConvert()
262 ConstantInt *NewLowerBound = Pivot.Low; in SwitchConvert()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp44 void replaceWith(Instruction *From, ConstantInt *To);
95 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler()
99 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler()
112 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface()
118 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface()
130 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture()
137 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture()
145 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) { in replaceWith()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp111 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal()
130 if (GEP->getNumOperands() < 3 || !isa<ConstantInt>(GEP->getOperand(1)) || in foldCmpLoadFromIndexedGlobal()
131 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal()
142 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal()
231 if (!isa<ConstantInt>(C)) in foldCmpLoadFromIndexedGlobal()
236 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal()
328 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal()
336 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal()
349 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal()
358 ConstantInt::get(Idx->getType(), SecondFalseElement); in foldCmpLoadFromIndexedGlobal()
[all …]
H A DInstCombineShifts.cpp251 SumOfShAmts, ConstantInt::get(SumOfShAmts->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
291 ShAmtsDiff, ConstantInt::get(ShAmtsDiff->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
295 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(), in dropRedundantMaskingOfLeftShiftInput()
483 Constant *NewC = ConstantInt::get(Ty, I.getOpcode() == Instruction::Shl in commonShiftTransforms()
504 Constant *Mask = ConstantExpr::getSub(C, ConstantInt::get(Ty, 1)); in commonShiftTransforms()
513 return replaceOperand(I, 1, ConstantInt::get(Ty, BitWidth - 1)); in commonShiftTransforms()
655 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift()
684 ConstantInt::get(ShType, Mask)); in foldShiftedShift()
757 ConstantInt::get(I->getType(), Mask)); in getShiftedValue()
812 Constant *NegDivC = ConstantInt::get(Ty, -(*DivC)); in FoldShiftByConstant()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DCrossDSOCFI.cpp38 ConstantInt *extractNumericTypeId(MDNode *MD);
46 ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) { in extractNumericTypeId()
51 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue()); in extractNumericTypeId()
69 if (ConstantInt *TypeId = extractNumericTypeId(Type)) in buildCFICheck()
78 if (ConstantInt *TypeId = in buildCFICheck()
124 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILLegalizePass.cpp56 else if (auto *Imm = dyn_cast<ConstantInt>(Op)) { in fixI8UseChain()
65 NewOperands.push_back(ConstantInt::get(InstrType, NewValue)); in fixI8UseChain()
120 ConstantInt *Offset = dyn_cast<ConstantInt>(GEP->getOperand(1)); in fixI8UseChain()
235 ConstantInt *Offset = dyn_cast<ConstantInt>(GEP->getOperand(1)); in fixI8UseChain()
310 auto *CI = dyn_cast<ConstantInt>(Idx); in downcastI64toI32InsertExtractElements()
315 ConstantInt::get(Type::getInt32Ty(I.getContext()), IndexValue); in downcastI64toI32InsertExtractElements()
326 auto *CI = dyn_cast<ConstantInt>(Idx); in downcastI64toI32InsertExtractElements()
330 ConstantInt::get(Type::getInt32Ty(I.getContext()), IndexValue); in downcastI64toI32InsertExtractElements()
343 ConstantInt *Length) { in emitMemcpyExpansion()
395 Value *Offset = ConstantInt::get(Type::getInt32Ty(Ctx), I); in emitMemcpyExpansion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp60 if (isa<ConstantInt>(I.getOperand(1))) in runOnFunction()
83 Value *Int8Zero = ConstantInt::get(Int8Ty, 0); in expand()
113 Builder.CreateSub(ShiftAmountPHI, ConstantInt::get(Int8Ty, 1)); in expand()
122 ValueShifted = Builder.CreateShl(ValuePHI, ConstantInt::get(InputTy, 1)); in expand()
125 ValueShifted = Builder.CreateLShr(ValuePHI, ConstantInt::get(InputTy, 1)); in expand()
128 ValueShifted = Builder.CreateAShr(ValuePHI, ConstantInt::get(InputTy, 1)); in expand()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUImageIntrinsicOptimizer.cpp119 auto *FragIdList = cast<ConstantInt>(IIList.front()->getArgOperand(I)); in addInstToMergeableList()
120 auto *FragId = cast<ConstantInt>(II->getArgOperand(I)); in addInstToMergeableList()
165 if (!isa<ConstantInt>(II->getArgOperand(FragIdIndex))) in collectMergeableInsts()
203 ConstantInt *DMask = cast<ConstantInt>( in optimizeSection()
223 cast<ConstantInt>(IIList.front()->getArgOperand(FragIdIndex)); in optimizeSection()
241 ConstantInt::get(DMask->getType(), NewMaskVal); in optimizeSection()
242 Args[FragIdIndex] = ConstantInt::get(FragId->getType(), NewFragIdVal); in optimizeSection()
253 auto *Idx = cast<ConstantInt>(II->getArgOperand(FragIdIndex)); in optimizeSection()
H A DAMDGPUInstCombineIntrinsic.cpp84 if (ConstantInt *ConstInt = dyn_cast<ConstantInt>(&V)) { in canSafelyConvertTo16Bit()
178 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->MipIndex))) { in simplifyAMDGCNImageIntrinsic()
213 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->OffsetIndex))) { in simplifyAMDGCNImageIntrinsic()
537 ConstantInt::get(LaneArg->getType(), Known.getConstant() & DemandedMask); in simplifyDemandedLaneMaskArg()
791 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), Exp)); in instCombineIntrinsic()
806 const ConstantInt *CMask = dyn_cast<ConstantInt>(Src1); in instCombineIntrinsic()
812 II.setArgOperand(1, ConstantInt::get(Src1->getType(), in instCombineIntrinsic()
823 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), false)); in instCombineIntrinsic()
828 Src1, ConstantInt::getNullValue(Src1->getType())); in instCombineIntrinsic()
897 ConstantInt *CArg = dyn_cast<ConstantInt>(II.getArgOperand(0)); in instCombineIntrinsic()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h38 friend class ConstantInt; // For constructor. variable
69 class ConstantInt : public Constant {
70 ConstantInt(llvm::ConstantInt *C, Context &Ctx) in ConstantInt() function
71 : Constant(ClassID::ConstantInt, C, Ctx) {} in ConstantInt()
79 LLVM_ABI static ConstantInt *getTrue(Context &Ctx);
80 LLVM_ABI static ConstantInt *getFalse(Context &Ctx);
81 LLVM_ABI static ConstantInt *getBool(Context &Ctx, bool V);
88 LLVM_ABI static ConstantInt *get(Type *Ty, uint64_t V, bool IsSigned = false);
96 LLVM_ABI static ConstantInt *get(IntegerType *Ty, uint64_t V,
104 LLVM_ABI static ConstantInt *getSigned(IntegerType *Ty, int64_t V);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h22 class ConstantInt; variable
44 const ConstantInt *Low, *High;
52 static CaseCluster range(const ConstantInt *Low, const ConstantInt *High, in range()
63 static CaseCluster jumpTable(const ConstantInt *Low, const ConstantInt *High, in jumpTable()
74 static CaseCluster bitTests(const ConstantInt *Low, const ConstantInt *High, in bitTests()
252 const ConstantInt *GE = nullptr;
253 const ConstantInt *LT = nullptr;

12345678910>>...25