Searched refs:ConstantInt (Results 1 - 25 of 414) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOpDescriptor.cpp18 Cs.push_back(ConstantInt::get(IntTy, APInt::getMaxValue(W)));
19 Cs.push_back(ConstantInt::get(IntTy, APInt::getMinValue(W)));
20 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMaxValue(W)));
21 Cs.push_back(ConstantInt::get(IntTy, APInt::getSignedMinValue(W)));
22 Cs.push_back(ConstantInt::get(IntTy, APInt::getOneBitSet(W, W / 2)));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DMDBuilder.cpp50 Vals[i + 1] = createConstant(ConstantInt::get(Int32Ty, Weights[i]));
68 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count)));
73 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID)));
88 return createRange(ConstantInt::get(Ty, Lo), ConstantInt::get(Ty, Hi));
113 Ops.push_back(createConstant(ConstantInt::get(Int64, CalleeArgNo)));
116 Ops.push_back(createConstant(ConstantInt::get(Int64, ArgNo, true)));
119 Ops.push_back(createConstant(ConstantInt::get(Int1, VarArgArePassed)));
131 cast<ConstantInt>(NewCBCalleeIdxAsCM->getValue())->getZExtValue();
143 cast<ConstantInt>(OldCBCalleeIdxAsC
[all...]
H A DConstantFold.cpp73 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i));
157 if (isa<ConstantInt>(V) || isa<ConstantFP>(V))
167 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
198 return ConstantInt::get(FP->getContext(),
225 if (ConstantInt *CI = dyn_cast<ConstantInt>(C)) {
230 return ConstantInt::get(CI->getContext(), V);
246 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(RH
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp43 void replaceWith(Instruction *From, ConstantInt *To);
97 replaceWith(&I, ConstantInt::getTrue(I.getContext()));
101 replaceWith(&I, ConstantInt::getFalse(I.getContext()));
114 replaceWith(&I, ConstantInt::getTrue(I.getContext()));
120 replaceWith(&I, ConstantInt::getFalse(I.getContext()));
132 replaceWith(&I, ConstantInt::getTrue(I.getContext()));
139 replaceWith(&I, ConstantInt::getFalse(I.getContext()));
147 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) {
H A DNVPTXLowerAggrCopies.cpp87 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(IntrCall->getLength())) {
110 ConstantInt *CopyLen =
111 ConstantInt::get(Type::getInt32Ty(Context), NumLoads);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLowerMemIntrinsics.h19 class ConstantInt;
39 Value *DstAddr, ConstantInt *CopyLen,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp63 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
65 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
71 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
73 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
75 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
77 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24),
80 ConstantInt::get(V->getType(), 0xFF0000),
83 ConstantInt::get(V->getType(), 0xFF00),
91 Value *Tmp8 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 56),
93 Value *Tmp7 = Builder.CreateShl(V, ConstantInt
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp111 Candidate(Kind CT, const SCEV *B, ConstantInt *Idx, Value *S,
122 ConstantInt *Index = nullptr;
205 void allocateCandidatesAndFindBasisForGEP(const SCEV *B, ConstantInt *Idx,
212 ConstantInt *Idx, Value *S,
283 static bool isAddFoldable(const SCEV *Base, ConstantInt *Index, Value *Stride,
305 ConstantInt *ConstIdx = dyn_cast<ConstantInt>(*I);
337 Candidate::Kind CT, const SCEV *B, ConstantInt *Idx, Value *S,
403 ConstantInt *Idx = nullptr;
410 Idx = ConstantInt
[all...]
H A DLowerExpectIntrinsic.cpp90 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(CI->getArgOperand(1));
128 ConstantInt *ExpectedValue = dyn_cast<ConstantInt>(Expect->getArgOperand(1));
162 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1));
176 Result ^= cast<ConstantInt>(Op->getOperand(1))->getValue();
215 ConstantInt *CI = dyn_cast<ConstantInt>(PhiOpnd);
283 ConstantInt *CmpConstOperan
[all...]
H A DSeparateConstOffsetFromGEP.cpp529 if (ConstantInt *ConstLHS = dyn_cast<ConstantInt>(LHS)) {
533 if (ConstantInt *ConstRHS = dyn_cast<ConstantInt>(RHS)) {
599 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
638 // ConstantExpr::getCast emits a ConstantInt if C is a ConstantInt.
668 assert(isa<ConstantInt>(U));
669 // If U is a ConstantInt, applyExt
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp62 !isa<ConstantInt>(GEP->getOperand(1)) ||
63 !cast<ConstantInt>(GEP->getOperand(1))->isZero() ||
64 !isa<ConstantInt>(GEP->getOperand(2)))
93 uint64_t ByteOffset = cast<ConstantInt>(
111 ConstantInt::get(Int32Ty, ByteOffset - SplitBegin)),
121 unsigned I = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue();
126 Ops.push_back(ConstantInt::get(Int32Ty, 0));
H A DCrossDSOCFI.cpp51 ConstantInt *extractNumericTypeId(MDNode *MD);
66 ConstantInt *CrossDSOCFI::extractNumericTypeId(MDNode *MD) {
71 auto C = dyn_cast_or_null<ConstantInt>(TM->getValue());
89 if (ConstantInt *TypeId = extractNumericTypeId(Type))
98 if (ConstantInt *TypeId =
144 ConstantInt *CaseTypeId = ConstantInt::get(Type::getInt64Ty(Ctx), TypeId);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryLocation.cpp113 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength()))
134 if (ConstantInt *C = dyn_cast<ConstantInt>(MI->getLength()))
164 if (ConstantInt *LenCI = dyn_cast<ConstantInt>(II->getArgOperand(2)))
176 cast<ConstantInt>(II->getArgOperand(0))->getZExtValue()),
188 cast<ConstantInt>(II->getArgOperand(1))->getZExtValue()),
220 if (const ConstantInt *LenCI =
221 dyn_cast<ConstantInt>(Cal
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp18 Value *DstAddr, ConstantInt *CopyLen,
67 LoopIndex->addIncoming(ConstantInt::get(TypeOfCopyLen, 0U), PreLoopBB);
78 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1U));
82 Constant *LoopEndCI = ConstantInt::get(TypeOfCopyLen, LoopEndCount);
113 OpTy, CastedSrc, ConstantInt::get(TypeOfCopyLen, GepIndex));
123 OpTy, CastedDst, ConstantInt::get(TypeOfCopyLen, GepIndex));
171 ConstantInt *CILoopOpSize = ConstantInt::get(ILengthType, LoopOpSize);
183 LoopIndex->addIncoming(ConstantInt::get(CopyLenType, 0U), PreLoopBB);
192 LoopBuilder.CreateAdd(LoopIndex, ConstantInt
[all...]
H A DLowerSwitch.cpp90 ConstantInt* Low;
91 ConstantInt* High;
94 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb)
107 ConstantInt *LowerBound, ConstantInt *UpperBound,
112 ConstantInt *LowerBound, ConstantInt *UpperBound,
122 const ConstantInt* CI1 = cast<const ConstantInt>(C
[all...]
H A DMisExpect.cpp112 mdconst::dyn_extract<ConstantInt>(MisExpectData->getOperand(1));
114 mdconst::dyn_extract<ConstantInt>(MisExpectData->getOperand(2));
116 mdconst::dyn_extract<ConstantInt>(MisExpectData->getOperand(3));
166 ConstantInt *Value =
167 mdconst::dyn_extract<ConstantInt>(MD->getOperand(i));
H A DSanitizerStats.cpp53 ConstantInt::get(IntPtrTy, uint64_t(SK) << (IntPtrTy->getBitWidth() -
65 ConstantInt::get(IntPtrTy, 0), ConstantInt::get(B.getInt32Ty(), 2),
66 ConstantInt::get(IntPtrTy, Inits.size() - 1),
87 ConstantInt::get(Int32Ty, Inits.size()),
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h54 class ConstantInt;
85 ConstantInt *ConstInt;
89 ConstantCandidate(ConstantInt *ConstInt, ConstantExpr *ConstExpr=nullptr) :
117 ConstantInt *BaseInt;
146 using ConstPtrUnionType = PointerUnion<ConstantInt *, ConstantExpr *>;
177 ConstantInt *ConstInt);
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DPatternInit.cpp40 return llvm::ConstantInt::get(Ty, IntValue);
41 return llvm::ConstantInt::get(
51 auto *Int = llvm::ConstantInt::get(IntTy, IntValue);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp74 ConstantInt *SizeCI = dyn_cast<ConstantInt>(Size);
77 Value *NeededSizeVal = ConstantInt::get(IntTy, NeededSize);
92 ? ConstantInt::getFalse(Ptr->getContext())
97 ? ConstantInt::getFalse(Ptr->getContext())
102 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0));
117 ConstantInt *C = dyn_cast_or_null<ConstantInt>(Or);
H A DInstrOrderFile.cpp135 Value *IdxFlags[] = {ConstantInt::get(Int32Ty, 0),
136 ConstantInt::get(Int32Ty, FuncId)};
139 entryB.CreateStore(ConstantInt::get(Int8Ty, 1), MapAddr);
141 entryB.CreateICmpEQ(loadBitMap, ConstantInt::get(Int8Ty, 0));
146 AtomicRMWInst::Add, BufferIdx, ConstantInt::get(Int32Ty, 1),
150 IdxVal, ConstantInt::get(Int32Ty, INSTR_ORDER_FILE_BUFFER_MASK));
151 Value *BufferGEPIdx[] = {ConstantInt::get(Int32Ty, 0), WrappedIdx};
154 updateB.CreateStore(ConstantInt::get(Type::getInt64Ty(Ctx), MD5Hash(F.getName())),
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DStatepoint.h88 return cast<ConstantInt>(getArgOperand(IDPos))->getZExtValue();
95 cast<ConstantInt>(NumPatchBytesVal)->getZExtValue();
102 return cast<ConstantInt>(getArgOperand(NumCallArgsPos))->getZExtValue();
106 return cast<ConstantInt>(getArgOperand(FlagsPos))->getZExtValue();
243 return cast<ConstantInt>(NumGCTransitionArgs)->getZExtValue();
250 return cast<ConstantInt>(NumDeoptArgs)->getZExtValue();
311 return cast<ConstantInt>(getArgOperand(1))->getZExtValue();
317 return cast<ConstantInt>(getArgOperand(2))->getZExtValue();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp71 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0);
73 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1);
105 NewRHS = ConstantInt::get(I.getType(), C->byteSwap());
118 ConstantInt *OpRHS,
119 ConstantInt *AndRHS,
176 return Builder.CreateICmp(Pred, V, ConstantInt::get(Ty, Hi));
182 Builder.CreateSub(V, ConstantInt::get(Ty, Lo), V->getName() + ".off");
183 Constant *HiMinusLo = ConstantInt::get(Ty, Hi - Lo);
231 ConstantInt *ACst = dyn_cast<ConstantInt>(
[all...]
H A DInstCombineCalls.cpp110 assert((isa<ConstantInt>(Elt) || isa<ConstantFP>(Elt)) &&
113 ? cast<ConstantInt>(Elt)->isNegative()
115 BoolVec.push_back(ConstantInt::get(BoolTy, Sign));
146 ConstantInt *MemOpLength = dyn_cast<ConstantInt>(MI->getLength());
184 mdconst::hasa<ConstantInt>(M->getOperand(0)) &&
185 mdconst::extract<ConstantInt>(M->getOperand(0))->isZero() &&
187 mdconst::hasa<ConstantInt>(M->getOperand(1)) &&
188 mdconst::extract<ConstantInt>(M->getOperand(1))->getValue() ==
254 ConstantInt *Len
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h39 const ConstantInt *Low, *High;
47 static CaseCluster range(const ConstantInt *Low, const ConstantInt *High,
58 static CaseCluster jumpTable(const ConstantInt *Low, const ConstantInt *High,
69 static CaseCluster bitTests(const ConstantInt *Low, const ConstantInt *High,
238 const ConstantInt *GE;
239 const ConstantInt *LT;

Completed in 338 milliseconds

1234567891011>>