/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | SCCP.cpp | 360 return ConstantInt::get(Ctx, *CR.getSingleElement()); 366 ConstantInt *getConstantInt(const ValueLatticeElement &IV) const { 367 return dyn_cast_or_null<ConstantInt>(getConstant(IV)); 626 ConstantInt *CI = getConstantInt(BCValue); 652 ConstantInt *CI = getConstantInt(SCValue); 918 if (ConstantInt *CondCB = getConstantInt(CondValue)) { 1527 BI->setCondition(ConstantInt::getFalse(BI->getContext())); 1848 if (!isa<ConstantInt>(SI->getCondition())) { 1854 if (!isa<ConstantInt>(BI->getCondition())) { 1857 C = ConstantInt [all...] |
H A D | MergeICmps.cpp | 375 const auto *const Const = dyn_cast<ConstantInt>(Val); 655 ConstantInt::get(DL.getIntPtrType(Context), TotalSizeBits / 8), Builder, 658 MemCmpCall, ConstantInt::get(Type::getInt32Ty(Context), 0)); 671 Phi.addIncoming(ConstantInt::getFalse(Context), BB); 819 if (isa<ConstantInt>(Phi.getIncomingValue(I))) continue;
|
H A D | LoopSimplifyCFG.cpp | 67 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition()); 74 auto *CI = dyn_cast<ConstantInt>(SI->getCondition());
|
H A D | LowerMatrixIntrinsics.cpp | 136 assert((!isa<ConstantInt>(Stride) || 137 cast<ConstantInt>(Stride)->getZExtValue() >= NumElements) && 146 if (isa<ConstantInt>(VecStart) && cast<ConstantInt>(VecStart)->isZero()) 350 : ShapeInfo(cast<ConstantInt>(NumRows)->getZExtValue(), 351 cast<ConstantInt>(NumColumns)->getZExtValue()) {} 772 /// ConstantInt, reduce the initial alignment based on the byte offset. For 773 /// non-ConstantInt strides, return the common alignment of the initial 782 if (auto *ConstStride = dyn_cast<ConstantInt>(Stride)) { 855 cast<ConstantInt>(Ins [all...] |
H A D | SimpleLoopUnswitch.cpp | 540 ConstantInt *Replacement = ExitDirection 541 ? ConstantInt::getFalse(BI.getContext()) 542 : ConstantInt::getTrue(BI.getContext()); 656 SmallVector<std::tuple<ConstantInt *, BasicBlock *, 769 ConstantInt *CaseVal = std::get<0>(ExitCase); 2253 ConstantInt *UnswitchedReplacement = 2254 Direction ? ConstantInt::getTrue(BI->getContext()) 2255 : ConstantInt::getFalse(BI->getContext()); 2256 ConstantInt *ContinueReplacement = 2257 Direction ? ConstantInt [all...] |
H A D | SpeculateAroundPHIs.cpp | 216 SmallDenseMap<ConstantInt *, CostsAndCount, 16> CostsAndCounts; 219 auto *IncomingC = dyn_cast<ConstantInt>(PN.getIncomingValue(i)); 283 ConstantInt *IncomingC = IncomingConstantAndCostsAndCount.first;
|
H A D | EarlyCSE.cpp | 878 ? ConstantInt::getTrue(BB->getContext()) 879 : ConstantInt::getFalse(BB->getContext()); 987 AvailableValues.insert(CondI, ConstantInt::getTrue(BB->getContext())); 1031 if (isa<ConstantInt>(KnownCond) && 1032 cast<ConstantInt>(KnownCond)->isOne()) { 1046 AvailableValues.insert(CondI, ConstantInt::getTrue(BB->getContext()));
|
H A D | Scalarizer.cpp | 298 ConstantInt *Idx = dyn_cast<ConstantInt>(Insert->getOperand(2)); 762 if (auto *CI = dyn_cast<ConstantInt>(InsIdx)) { 771 Builder.CreateICmpEQ(InsIdx, ConstantInt::get(InsIdx->getType(), I), 793 if (auto *CI = dyn_cast<ConstantInt>(ExtIdx)) { 805 Builder.CreateICmpEQ(ExtIdx, ConstantInt::get(ExtIdx->getType(), I),
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | TargetTransformInfo.cpp | 646 if (const auto *CI = dyn_cast<ConstantInt>(V)) { 667 if (auto *CI = dyn_cast<ConstantInt>(Splat)) 673 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) 1094 ConstantInt *CI = dyn_cast<ConstantInt>(ReduxRoot->getOperand(1)); 1159 ConstantInt *CI = dyn_cast<ConstantInt>(ReduxRoot->getOperand(1));
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGAtomic.cpp | 352 addr, llvm::ConstantInt::get(CGF.Int8Ty, 0), 416 if (llvm::ConstantInt *FO = dyn_cast<llvm::ConstantInt>(FailureOrderVal)) { 540 if (llvm::ConstantInt *IsWeakC = dyn_cast<llvm::ConstantInt>(IsWeak)) { 716 if (auto SC = dyn_cast<llvm::ConstantInt>(Scope)) { 1009 Args.add(RValue::get(llvm::ConstantInt::get(SizeTy, Size)), 1273 if (isa<llvm::ConstantInt>(Order)) { 1274 auto ord = cast<llvm::ConstantInt>(Order)->getZExtValue(); 1496 RValue::get(llvm::ConstantInt [all...] |
H A D | CGExpr.cpp | 634 return cast<llvm::ConstantInt>(Elts->getAggregateElement(Idx)) 699 llvm::Value *True = llvm::ConstantInt::getTrue(getLLVMContext()); 732 llvm::Value *Size = llvm::ConstantInt::get(IntPtrTy, TySize); 771 PtrAsInt, llvm::ConstantInt::get(IntPtrTy, AlignVal - 1)); 773 Builder.CreateICmpEQ(Align, llvm::ConstantInt::get(IntPtrTy, 0)); 785 llvm::ConstantInt::get(Int8Ty, AlignVal ? llvm::Log2_64(AlignVal) : 1), 786 llvm::ConstantInt::get(Int8Ty, TCK)}; 829 llvm::Value *Low = llvm::ConstantInt::get(Int64Ty, TypeHash); 844 llvm::ConstantInt::get(IntPtrTy, 860 llvm::ConstantInt [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 17 // Value *X, *Y; ConstantInt *C1, *C2; // (X & C1) | (Y & C2) 91 /// Match an arbitrary ConstantInt and ignore it. 92 inline class_match<ConstantInt> m_ConstantInt() { 93 return class_match<ConstantInt>(); 171 if (auto *CI = dyn_cast<ConstantInt>(V)) { 177 if (auto *CI = dyn_cast_or_null<ConstantInt>( 211 /// Match a ConstantInt or splatted ConstantVector, binding the 247 if (const auto *CI = dyn_cast<ConstantInt>(V)) { 260 /// Match a ConstantInt with a specific value. 305 /// specialization of cstval_pred_ty for ConstantInt [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ScalarEvolutionExpressions.h | 50 ConstantInt *V; 52 SCEVConstant(const FoldingSetNodeIDRef ID, ConstantInt *v) : 56 ConstantInt *getValue() const { return V; } 809 if (InterpretConsts && isa<ConstantInt>(NV)) 810 return SE.getConstant(cast<ConstantInt>(NV));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMFastISel.cpp | 465 const ConstantInt *CI = cast<ConstantInt>(C); 640 else if (isa<ConstantInt>(C)) 752 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue(); 757 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) { 764 ConstantInt *CI = 765 cast<ConstantInt>(cast<AddOperator>(Op)->getOperand(1)); 1282 } else if (const ConstantInt *CI = 1283 dyn_cast<ConstantInt>(B [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FastISel.cpp | 148 unsigned X86MaterializeInt(const ConstantInt *CI, MVT VT); 664 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Val)) { 887 if (const ConstantInt *CI = dyn_cast<ConstantInt>(U->getOperand(1))) { 913 Disp += SL->getElementOffset(cast<ConstantInt>(Op)->getZExtValue()); 921 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) { 928 ConstantInt *CI = 929 cast<ConstantInt>(cas [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | IRTranslator.cpp | 230 ElementSize * cast<ConstantInt>(AI.getArraySize())->getZExtValue(); 435 const ConstantInt *CaseVal = I.getCaseValue(); 544 *ConstantInt::get(SValue.getType(), JTH.Last - JTH.First)); 586 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); 587 const APInt& High = cast<ConstantInt>(CB.CmpRHS)->getValue(); 590 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) { 946 Indices.push_back(ConstantInt::get(Int32Ty, 0)); 950 Indices.push_back(ConstantInt::get(Int32Ty, Idx)); 953 Indices.push_back(ConstantInt::get(Int32Ty, Idx)); 1089 if (const auto *CI = dyn_cast<ConstantInt>(Id [all...] |
H A D | InlineAsmLowering.cpp | 223 if (isa<BasicBlock>(Val) || isa<ConstantInt>(Val) || isa<Function>(Val)) 660 if (ConstantInt *CI = dyn_cast<ConstantInt>(Val)) {
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/CodeGen/ |
H A D | ConstantInitBuilder.h | 199 add(llvm::ConstantInt::get(intTy, value, isSigned)); 246 llvm::ConstantInt::get(type, tag)); 292 fillPlaceholder(position, llvm::ConstantInt::get(type, value, isSigned));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsFastISel.cpp | 299 if (isa<ConstantInt>(LHS) && !isa<ConstantInt>(RHS)) 322 if (const auto *C = dyn_cast<ConstantInt>(RHS)) 360 const ConstantInt *CI = cast<ConstantInt>(C); 459 else if (isa<ConstantInt>(C)) 497 unsigned Idx = cast<ConstantInt>(Op)->getZExtValue(); 502 if (const ConstantInt *CI = dyn_cast<ConstantInt>(Op)) { 509 ConstantInt *C [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | HardwareLoops.cpp | 280 ConstantInt::get(HWLoopInfo.CountType, LoopDecrement); 365 if (auto *Const = dyn_cast<ConstantInt>(ICmp->getOperand(OpIdx))) 505 CondBuilder.CreateICmpNE(EltsRem, ConstantInt::get(EltsRem->getType(), 0));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
H A D | OMPIRBuilder.cpp | 196 Constant *I32Null = ConstantInt::getNullValue(Int32); 198 I32Null, ConstantInt::get(Int32, uint32_t(LocFlags)), 199 ConstantInt::get(Int32, Reserve2Flags), I32Null, SrcLocStr}; 438 ConstantInt::get(Int32, unsigned(ProcBind), /*isSigned=*/true)}; 761 Constant *I32Null = ConstantInt::getNullValue(Int32); 1044 llvm::ConstantInt *Size, const llvm::Twine &Name) {
|
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | IRDynamicChecks.cpp | 251 ConstantInt::get(GetIntptrTy(), start_address, false); 275 ConstantInt::get(GetIntptrTy(), start_address, false);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | BasicBlock.cpp | 79 ConstantInt::get(llvm::Type::getInt32Ty(getContext()), 1); 463 auto *CI = mdconst::extract<ConstantInt>(MDIrrLoopHeader->getOperand(1));
|
H A D | LLVMContextImpl.h | 346 ConstantInt *CV1 = cast<ConstantInt>(MD1->getValue()); 347 ConstantInt *CV2 = cast<ConstantInt>(MD2->getValue()); 363 return hash_combine(cast<ConstantInt>(MD->getValue())->getSExtValue(), 1300 DenseMap<APInt, std::unique_ptr<ConstantInt>, DenseMapAPIntKeyInfo>; 1353 ConstantInt *TheTrueVal = nullptr; 1354 ConstantInt *TheFalseVal = nullptr;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineNegator.cpp | 167 return Builder.CreateAdd(X, ConstantInt::get(X->getType(), 1), 356 return Builder.CreateAdd(Xor, ConstantInt::get(Xor->getType(), 1),
|