Home
last modified time | relevance | path

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

12345678910>>...21

/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DMDBuilder.cpp50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i])); in createBranchWeights()
68 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount()
73 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount()
88 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi)); in createRange()
113 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo))); in createCallbackEncoding()
116 Ops.push_back(createConstant(ConstantInt::get(Int64, ArgNo, true))); in createCallbackEncoding()
119 Ops.push_back(createConstant(ConstantInt::get(Int1, VarArgArePassed))); in createCallbackEncoding()
131 cast<ConstantInt>(NewCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings()
143 cast<ConstantInt>(OldCBCalleeIdxAsCM->getValue())->getZExtValue(); in mergeCallbackEncodings()
209 Constant *Flags = ConstantInt::get(Type::getInt64Ty(Context), 1); in createTBAANode()
[all …]
H A DConstantFold.cpp71 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector()
156 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast()
166 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in FoldBitCast()
197 return ConstantInt::get(FP->getContext(), in FoldBitCast()
224 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) { in ExtractConstantBytes()
229 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes()
245 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RHS)) in ExtractConstantBytes()
269 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
292 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1)); in ExtractConstantBytes()
339 ConstantInt::get(Res->getType(), ByteStart*8)); in ExtractConstantBytes()
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp142 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S, in Candidate()
153 ConstantInt *Index = nullptr;
217 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
224 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.cpp90 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleSwitchExpect()
124 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1)); in handlePhiDef()
169 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef()
183 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue(); in handlePhiDef()
222 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd); in handlePhiDef()
295 ConstantInt *CmpConstOperand = nullptr; in handleBrSelExpect()
304 CmpConstOperand = dyn_cast<ConstantInt>(CmpI->getOperand(1)); in handleBrSelExpect()
326 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1)); in handleBrSelExpect()
H A DSeparateConstOffsetFromGEP.cpp544 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) { in CanTraceInto()
548 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) { in CanTraceInto()
614 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) { in find()
683 assert(isa<ConstantInt>(U)); in distributeExtsAndCloneChain()
685 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U)); in distributeExtsAndCloneChain()
717 assert(isa<ConstantInt>(UserChain[ChainIndex])); in removeConstOffset()
718 return ConstantInt::getNullValue(UserChain[ChainIndex]->getType()); in removeConstOffset()
734 if (ConstantInt *CI = dyn_cast<ConstantInt>(NextInChain)) { in removeConstOffset()
837 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue(); in accumulateByteOffset()
874 if (ConstantInt *CI = dyn_cast<ConstantInt>(Idx)) in lowerToSingleIndexGEPs()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp45 void replaceWith(Instruction *From, ConstantInt *To);
96 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler()
100 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler()
113 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface()
119 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface()
131 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture()
138 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture()
146 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) { in replaceWith()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp82 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()
413 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), Exp)); in instCombineIntrinsic()
425 const ConstantInt *CMask = dyn_cast<ConstantInt>(Src1); in instCombineIntrinsic()
433 ConstantInt::get(II.getType(), false)); in instCombineIntrinsic()
442 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), true)); in instCombineIntrinsic()
446 return IC.replaceInstUsesWith(II, ConstantInt::get(II.getType(), false)); in instCombineIntrinsic()
468 II, 1, ConstantInt::get(Src1->getType(), Mask & ~fcNan)); in instCombineIntrinsic()
481 {Src0, ConstantInt::get(Src1->getType(), Mask & fcAllFlags)}); in instCombineIntrinsic()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DMemoryLocation.cpp182 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2))) in getForArgument()
194 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()), in getForArgument()
221 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()), in getForArgument()
265 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in getForArgument()
277 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) { in getForArgument()
298 if (const ConstantInt *LenCI = in getForArgument()
299 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
307 if (const ConstantInt *LenCI = in getForArgument()
308 dyn_cast<ConstantInt>(Call->getArgOperand(2))) in getForArgument()
314 if (const ConstantInt *LenCI = in getForArgument()
[all …]
H A DTypeBasedAliasAnalysis.cpp183 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(2)); in isTypeImmutable()
231 return mdconst::extract<ConstantInt>(Node->getOperand(2))->getZExtValue(); in getOffset()
237 return mdconst::extract<ConstantInt>(Node->getOperand(3))->getZExtValue(); in getSize()
247 ConstantInt *CI = mdconst::dyn_extract<ConstantInt>(Node->getOperand(OpNo)); in isTypeImmutable()
324 : mdconst::extract<ConstantInt>(Operands[2])->getZExtValue(); in getField()
342 mdconst::extract<ConstantInt>(Operands[Idx + 1])->getZExtValue(); in getField()
354 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()
764 ConstantInt *InnerOffset = mdconst::extract<ConstantInt>(MD->getOperand(i)); in shiftTBAAStruct()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp109 ConstantInt *AndCst) { in foldCmpLoadFromIndexedGlobal()
129 !isa<ConstantInt>(GEP->getOperand(1)) || in foldCmpLoadFromIndexedGlobal()
130 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in foldCmpLoadFromIndexedGlobal()
141 ConstantInt *Idx = dyn_cast<ConstantInt>(GEP->getOperand(i)); in foldCmpLoadFromIndexedGlobal()
219 if (!isa<ConstantInt>(C)) return nullptr; in foldCmpLoadFromIndexedGlobal()
223 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero(); in foldCmpLoadFromIndexedGlobal()
300 Value *Mask = ConstantInt::get(Idx->getType(), -1); in foldCmpLoadFromIndexedGlobal()
315 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElement); in foldCmpLoadFromIndexedGlobal()
323 Value *SecondTrueIdx = ConstantInt::get(Idx->getType(), SecondTrueElement); in foldCmpLoadFromIndexedGlobal()
336 Value *FirstFalseIdx = ConstantInt::get(Idx->getType(), FirstFalseElement); in foldCmpLoadFromIndexedGlobal()
[all …]
H A DInstCombineShifts.cpp246 SumOfShAmts, ConstantInt::get(SumOfShAmts->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
279 ShAmtsDiff, ConstantInt::get(ShAmtsDiff->getType()->getScalarType(), in dropRedundantMaskingOfLeftShiftInput()
282 ConstantExpr::getSub(ConstantInt::get(ShAmtsDiff->getType(), in dropRedundantMaskingOfLeftShiftInput()
440 Constant *NewC = ConstantInt::get(Ty, I.getOpcode() == Instruction::Shl in commonShiftTransforms()
461 Constant *Mask = ConstantExpr::getSub(C, ConstantInt::get(Ty, 1)); in commonShiftTransforms()
595 InnerShift->setOperand(1, ConstantInt::get(ShType, ShAmt)); in foldShiftedShift()
624 ConstantInt::get(ShType, Mask)); in foldShiftedShift()
697 ConstantInt::get(I->getType(), Mask)); in getShiftedValue()
743 Constant *NegDivC = ConstantInt::get(Ty, -(*DivC)); in FoldShiftByConstant()
947 return BinaryOperator::CreateAnd(X, ConstantInt::get(Ty, Mask)); in visitShl()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp22 ConstantInt *CopyLen, Align SrcAlign, Align DstAlign, bool SrcIsVolatile, in createMemCpyLoopKnownSize()
80 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB); in createMemCpyLoopKnownSize()
104 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U)); in createMemCpyLoopKnownSize()
108 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount); in createMemCpyLoopKnownSize()
143 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
157 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex)); in createMemCpyLoopKnownSize()
222 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize); in createMemCpyLoopUnknownSize()
234 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB); in createMemCpyLoopUnknownSize()
255 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLenType, 1U)); in createMemCpyLoopUnknownSize()
285 ConstantInt *Zero = ConstantInt::get(ILengthType, 0U); in createMemCpyLoopUnknownSize()
[all …]
H A DLowerSwitch.cpp74 ConstantInt *Low;
75 ConstantInt *High;
78 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange()
89 const ConstantInt *CI1 = cast<const ConstantInt>(C1.Low); in operator ()()
90 const ConstantInt *CI2 = cast<const ConstantInt>(C2.High); in operator ()()
157 BasicBlock *NewLeafBlock(CaseRange &Leaf, Value *Val, ConstantInt *LowerBound, in NewLeafBlock()
158 ConstantInt *UpperBound, BasicBlock *OrigBlock, in NewLeafBlock()
229 BasicBlock *SwitchConvert(CaseItr Begin, CaseItr End, ConstantInt *LowerBound, in SwitchConvert()
230 ConstantInt *UpperBound, Value *Val, in SwitchConvert()
265 ConstantInt *NewLowerBound = Pivot.Low; in SwitchConvert()
[all …]
H A DSimplifyLibCalls.cpp186 return ConstantInt::get(RetTy, Result); in convertStrToInt()
264 if (ConstantInt *LenC = dyn_cast<ConstantInt>(Size)) { in annotateNonNullAndDereferenceable()
345 ConstantInt::get(DL.getIntPtrType(Src->getContext()), Len + 1)); in emitStrLenMemCpy()
360 ConstantInt *LengthArg = dyn_cast<ConstantInt>(Size); in optimizeStrNCat()
408 Value *Zero = ConstantInt::get(NBytes->getType(), 0); in memChrToCharCompare()
427 ConstantInt *CharC = dyn_cast<ConstantInt>(CharVal); in optimizeStrChr()
445 ConstantInt::get(SizeTTy, Len), B, in optimizeStrChr()
482 ConstantInt *CharC = dyn_cast<ConstantInt>(CharVal); in optimizeStrRChr()
499 Value *Size = ConstantInt::get(SizeTTy, NBytes); in optimizeStrRChr()
506 return ConstantInt::get(CI->getType(), 0); in optimizeStrCmp()
[all …]
/openbsd-src/gnu/llvm/clang/tools/clang-linker-wrapper/
H A DOffloadWrapper.cpp176 auto *Zero = ConstantInt::get(getSizeTTy(M), 0u); in createBinDesc()
191 auto *Size = ConstantInt::get(getSizeTTy(M), Buf.size()); in createBinDesc()
219 ConstantInt::get(Type::getInt32Ty(C), ImagesInits.size()), ImagesB, in createBinDesc()
315 ConstantInt::get(Type::getInt32Ty(C), IsHIP ? HIPFatMagic : CudaFatMagic), in createFatbinDesc()
316 ConstantInt::get(Type::getInt32Ty(C), 1), in createFatbinDesc()
433 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction()
434 ConstantInt::get(Type::getInt32Ty(C), 0)}); in createRegisterGlobalsFunction()
438 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction()
439 ConstantInt::get(Type::getInt32Ty(C), 1)}); in createRegisterGlobalsFunction()
443 {ConstantInt::get(getSizeTTy(M), 0), in createRegisterGlobalsFunction()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W))); in makeConstantsWithType()
19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W))); in makeConstantsWithType()
20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W))); in makeConstantsWithType()
21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W))); in makeConstantsWithType()
22 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2))); in makeConstantsWithType()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DInstrOrderFile.cpp127 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0), in generateCodeSequence()
128 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence()
131 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr); in generateCodeSequence()
133 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0)); in generateCodeSequence()
138 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1), in generateCodeSequence()
142 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK)); in generateCodeSequence()
143 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx}; in generateCodeSequence()
146 updateB.CreateStore(ConstantInt::get(Type::getInt64Ty(Ctx), MD5Hash(F.getName())), in generateCodeSequence()
H A DBoundsChecking.cpp72 ConstantInt *SizeCI = dyn_cast<ConstantInt>(Size); in getBoundsCheckCond()
75 Value *NeededSizeVal = ConstantInt::get(IntTy, NeededSize); in getBoundsCheckCond()
90 ? ConstantInt::getFalse(Ptr->getContext()) in getBoundsCheckCond()
95 ? ConstantInt::getFalse(Ptr->getContext()) in getBoundsCheckCond()
100 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0)); in getBoundsCheckCond()
115 ConstantInt *C = dyn_cast_or_null<ConstantInt>(Or); in insertBoundsCheck()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp96 MaybeAlign MA = cast<ConstantInt>(AlignOp)->getMaybeAlignValue(); in isLegalTypeAndAlignment()
114 dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement((unsigned)0)); in matchStridedConstant()
118 ConstantInt *Prev = StartVal; in matchStridedConstant()
120 auto *C = dyn_cast_or_null<ConstantInt>(StartC->getAggregateElement(i)); in matchStridedConstant()
133 Value *Stride = ConstantInt::get(StartVal->getType(), StrideVal); in matchStridedConstant()
148 return std::make_pair(ConstantInt::get(Ty, 0), ConstantInt::get(Ty, 1)); in matchStridedStart()
298 if (isa<ConstantInt>(Start) && cast<ConstantInt>(Start)->isZero()) in matchStridedRecurrence()
307 if (!isa<ConstantInt>(Start) || !cast<ConstantInt>(Start)->isZero()) in matchStridedRecurrence()
313 if (isa<ConstantInt>(Stride) && cast<ConstantInt>(Stride)->isOne()) in matchStridedRecurrence()
323 if (!isa<ConstantInt>(Start) || !cast<ConstantInt>(Start)->isZero()) in matchStridedRecurrence()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp62 !isa<ConstantInt>(GEP->getOperand(1)) || in splitGlobal()
63 !cast<ConstantInt>(GEP->getOperand(1))->isZero() || in splitGlobal()
64 !isa<ConstantInt>(GEP->getOperand(2))) in splitGlobal()
93 uint64_t ByteOffset = cast<ConstantInt>( in splitGlobal()
111 ConstantInt::get(Int32Ty, ByteOffset - SplitBegin)), in splitGlobal()
121 unsigned I = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in splitGlobal()
126 Ops.push_back(ConstantInt::get(Int32Ty, 0)); in splitGlobal()
H A DCrossDSOCFI.cpp46 ConstantInt *extractNumericTypeId(MDNode *MD);
61 ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) { in extractNumericTypeId()
66 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue()); in extractNumericTypeId()
84 if (ConstantInt *TypeId = extractNumericTypeId(Type)) in buildCFICheck()
93 if (ConstantInt *TypeId = in buildCFICheck()
139 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId); in buildCFICheck()
/openbsd-src/gnu/llvm/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()
243 const ConstantInt *GE;
244 const ConstantInt *LT;
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp57 if (isa<ConstantInt>(I.getOperand(1))) in runOnFunction()
80 Value *Int8Zero = ConstantInt::get(Int8Ty, 0); in expand()
110 Builder.CreateSub(ShiftAmountPHI, ConstantInt::get(Int8Ty, 1)); in expand()
119 ValueShifted = Builder.CreateShl(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand()
122 ValueShifted = Builder.CreateLShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand()
125 ValueShifted = Builder.CreateAShr(ValuePHI, ConstantInt::get(Int32Ty, 1)); in expand()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp226 Amt = ConstantInt::get(SVT, BitWidth - 1); in simplifyX86immShift()
267 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
287 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); in simplifyX86immShift()
382 auto *COp = dyn_cast_or_null<ConstantInt>(CElt); in simplifyX86varShift()
409 ConstantVec.push_back(ConstantInt::getNullValue(SVT)); in simplifyX86varShift()
425 ShiftVecAmts.push_back(ConstantInt::get(SVT, Idx)); in simplifyX86varShift()
562 auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2)); in simplifyX86insertps()
620 ConstantInt *CILength, ConstantInt *CIIndex, in simplifyX86extrq()
624 Constant *Args[] = {ConstantInt::get(IntTy64, Val), in simplifyX86extrq()
632 C0 ? dyn_cast_or_null<ConstantInt>(C0->getAggregateElement((unsigned)0)) in simplifyX86extrq()
[all …]

12345678910>>...21