Searched refs:ConstantInt (Results 126 - 150 of 414) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp158 const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize());
458 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
491 if (ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
H A DFastISel.cpp419 if (const auto *CI = dyn_cast<ConstantInt>(V)) {
446 getRegForValue(ConstantInt::get(V->getContext(), SIntVal));
620 if (const auto *CI = dyn_cast<ConstantInt>(I->getOperand(0)))
644 if (const auto *CI = dyn_cast<ConstantInt>(I->getOperand(1))) {
711 uint64_t Field = cast<ConstantInt>(Idx)->getZExtValue();
727 if (const auto *CI = dyn_cast<ConstantInt>(Idx)) {
785 if (const auto *C = dyn_cast<ConstantInt>(Val)) {
829 assert(isa<ConstantInt>(I->getOperand(PatchPointOpers::IDPos)) &&
831 const auto *ID = cast<ConstantInt>(I->getOperand(PatchPointOpers::IDPos));
834 assert(isa<ConstantInt>(
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAssumeBundleBuilder.cpp138 ConstantInt::get(Type::getInt64Ty(M->getContext()), RK.ArgValue));
234 Args.push_back(ConstantInt::get(Type::getInt64Ty(M->getContext()),
243 FnAssume, ArrayRef<Value *>({ConstantInt::getTrue(C)}), OpBundle));
325 auto *Arg = dyn_cast<ConstantInt>(Assume->getOperand(0));
344 auto *Arg = dyn_cast<ConstantInt>(Assume->getOperand(0));
419 ConstantInt::get(Type::getInt64Ty(C), RK.ArgValue));
H A DSimplifyIndVar.cpp123 !isa<ConstantInt>(UseInst->getOperand(1)))
129 || !isa<ConstantInt>(IVOperand->getOperand(1)))
136 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1));
143 D = ConstantInt::get(UseInst->getContext(),
267 ICmp->replaceAllUsesWith(ConstantInt::getTrue(ICmp->getContext()));
271 ICmp->replaceAllUsesWith(ConstantInt::getFalse(ICmp->getContext()));
348 SelectInst::Create(ICmp, ConstantInt::get(T, 0), N, "iv.rem", Rem);
465 EVI->replaceAllUsesWith(ConstantInt::getFalse(WO->getContext()));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp972 auto *Op = dyn_cast<ConstantInt>(GEP->getOperand(i));
1297 B = ConstantInt::get(B->getType(), 1);
1299 B = ConstantInt::get(B->getType(), -1);
1363 B = ConstantInt::get(B->getType(), 1);
1601 if (!isa<ConstantInt>(AndI->getOperand(0)) &&
1602 !isa<ConstantInt>(AndI->getOperand(1)) &&
1613 auto *CmpC = dyn_cast<ConstantInt>(User->getOperand(1));
1665 !isa<ConstantInt>(User->getOperand(1)))
1668 const APInt &Cimm = cast<ConstantInt>(User->getOperand(1))->getValue();
1678 SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *C
[all...]
H A DSafeStack.cpp227 auto C = dyn_cast<ConstantInt>(AI->getArraySize());
275 const auto *Len = dyn_cast<ConstantInt>(MI->getLength());
560 ConstantInt::get(IntPtrTy, ~uint64_t(FrameAlignment - 1))),
569 ConstantInt::get(Int32Ty, -Offset));
588 ConstantInt::get(Int32Ty, -Offset));
623 ConstantInt::get(Int32Ty, -Offset));
646 IRB.CreateGEP(Int8Ty, BasePointer, ConstantInt::get(Int32Ty, -FrameSize),
667 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize));
680 IRB.CreateAnd(SP, ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1))),
H A DScalarizeMaskedMemIntrin.cpp89 if (!CElt || !isa<ConstantInt>(CElt))
134 const Align AlignVal = cast<ConstantInt>(Alignment)->getAlignValue();
273 const Align AlignVal = cast<ConstantInt>(Alignment)->getAlignValue();
406 MaybeAlign AlignVal = cast<ConstantInt>(Alignment)->getMaybeAlignValue();
536 MaybeAlign AlignVal = cast<ConstantInt>(Alignment)->getMaybeAlignValue();
864 cast<ConstantInt>(CI->getArgOperand(1))->getAlignValue()))
871 cast<ConstantInt>(CI->getArgOperand(2))->getAlignValue()))
877 cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue();
888 cast<ConstantInt>(CI->getArgOperand(2))->getZExtValue();
H A DExpandMemCmp.cpp340 ConstantInt::get(Diff->getType(), 0));
416 Cmp = Builder.CreateICmpNE(OrList[0], ConstantInt::get(Diff->getType(), 0));
438 Value *Zero = ConstantInt::get(Type::getInt32Ty(CI->getContext()), 0);
492 Value *Zero = ConstantInt::get(Type::getInt32Ty(CI->getContext()), 0);
506 Value *Res = ConstantInt::get(Type::getInt32Ty(CI->getContext()), 1);
519 Builder.CreateSelect(Cmp, ConstantInt::get(Builder.getInt32Ty(), -1),
520 ConstantInt::get(Builder.getInt32Ty(), 1));
718 ConstantInt *SizeCast = dyn_cast<ConstantInt>(CI->getArgOperand(2));
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp140 ConstantInt *constant_int =
141 mdconst::dyn_extract<ConstantInt>(metadata_node->getOperand(1));
350 ConstantInt *new_constant_int =
351 ConstantInt::get(llvm::Type::getInt64Ty(m_module->getContext()),
476 ConstantInt::get(m_intptr_ty, CFStringCreateWithBytes_addr, false);
489 Constant *numBytes_arg = ConstantInt::get(
508 Constant *encoding_arg = ConstantInt::get(i32_ty, encoding_flags, false);
510 ConstantInt::get(i8_ty, 0x0, false); /* 0x0 is false */
861 ConstantInt::get(m_intptr_ty, sel_registerName_addr, false);
1013 ConstantInt
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h59 llvm::ConstantInt *getSize(CharUnits N) {
60 return llvm::ConstantInt::get(TypeCache.SizeTy, N.getQuantity());
62 llvm::ConstantInt *getSize(uint64_t N) {
63 return llvm::ConstantInt::get(TypeCache.SizeTy, N);
H A DCGCleanup.h25 class ConstantInt;
256 SmallVector<std::pair<llvm::BasicBlock*,llvm::ConstantInt*>, 4>
372 void addBranchAfter(llvm::ConstantInt *Index,
389 llvm::ConstantInt *getBranchAfterIndex(unsigned I) const {
H A DCGExprScalar.cpp59 bool mayHaveIntegerOverflow(llvm::ConstantInt *LHS, llvm::ConstantInt *RHS,
101 auto *LHSCI = dyn_cast<llvm::ConstantInt>(LHS);
102 auto *RHSCI = dyn_cast<llvm::ConstantInt>(RHS);
120 if (auto *CI = dyn_cast<llvm::ConstantInt>(RHS))
285 llvm::ConstantInt *AlignmentCI = cast<llvm::ConstantInt>(AlignmentValue);
460 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
463 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
466 return llvm::ConstantInt
[all...]
H A DCGOpenCLRuntime.cpp105 return llvm::ConstantInt::get(Int32Ty, TypeSize, false);
115 return llvm::ConstantInt::get(Int32Ty, TypeSize, false);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalDCE.cpp168 (cast<ConstantInt>(LTOPostLinkMD->getValue())->getZExtValue() != 0);
183 cast<ConstantInt>(
246 auto *Offset = dyn_cast<ConstantInt>(CI->getArgOperand(1));
270 auto *Val = mdconst::dyn_extract_or_null<ConstantInt>(
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1042 const ConstantInt *CI = nullptr;
1044 CI = dyn_cast<ConstantInt>(Initializer);
1703 if (const ConstantInt *CI = dyn_cast<ConstantInt>(CPV)) {
1795 unsigned char c = (unsigned char)cast<ConstantInt>(CPV)->getZExtValue();
1799 short int16 = (short)cast<ConstantInt>(CPV)->getZExtValue();
1803 if (const ConstantInt *constInt = dyn_cast<ConstantInt>(CPV)) {
1809 if (const auto *constInt = dyn_cast<ConstantInt>(
1825 if (const ConstantInt *constIn
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h523 if (ConstantInt *C = dyn_cast<ConstantInt>(I))
536 if (!isa<ConstantInt>(I))
544 return !isa<ConstantInt>(*use);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DGuardUtils.cpp53 Condition = ConstantInt::getTrue(IfTrueBB->getContext());
H A DInlineCost.cpp336 ConstantInt *stripAndComputeInBoundsConstantOffsets(Value *&V);
815 ConstantInt *OpC = dyn_cast<ConstantInt>(GTI.getOperand());
818 OpC = dyn_cast<ConstantInt>(SimpleOp);
859 if (auto *AllocSize = dyn_cast_or_null<ConstantInt>(Size)) {
1440 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset);
1441 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset);
1455 SimplifiedValues[&I] = IsNotEqual ? ConstantInt::getTrue(I.getType())
1456 : ConstantInt::getFalse(I.getType());
1474 Constant *CLHS = ConstantInt
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp1020 unsigned ShiftVal = cast<llvm::ConstantInt>(Shift)->getZExtValue();
1324 Constant *ShiftAmt = ConstantInt::get(Ty, 32);
1331 Constant *Mask = ConstantInt::get(Ty, 0xffffffff);
1710 ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1)));
1737 ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1)));
1845 (!isa<ConstantInt>(CI->getArgOperand(3)) ||
1846 cast<ConstantInt>(CI->getArgOperand(3))->getZExtValue() != 4)) {
1937 C = ConstantInt::getAllOnesValue(Builder.getInt16Ty());
1939 C = ConstantInt::getNullValue(Builder.getInt16Ty());
1948 ConstantInt
[all...]
H A DIntrinsicInst.cpp104 return ConstantInt::get(Type::getInt64Ty(Context), 1);
299 auto VLConst = dyn_cast<ConstantInt>(VLParam);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h174 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1));
179 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1));
266 SafeC = ConstantInt::get(EltTy, 1);
718 new StoreInst(ConstantInt::getTrue(Ctx),
851 ConstantInt *&Less, ConstantInt *&Equal,
852 ConstantInt *&Greater);
931 ConstantInt *AndCst = nullptr);
952 ConstantInt *C);
1003 Instruction *OptAndOp(BinaryOperator *Op, ConstantInt *OpRH
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp174 Dims.push_back(mdconst::extract<ConstantInt>(Op)->getZExtValue());
247 mdconst::extract<ConstantInt>(Op0->getOperand(0))->getZExtValue());
249 mdconst::extract<ConstantInt>(Op0->getOperand(1))->getZExtValue());
262 mdconst::extract<ConstantInt>(Node->getOperand(1))->getZExtValue());
588 uint64_t(mdconst::extract<ConstantInt>(Op)->getZExtValue())));
625 mdconst::extract<ConstantInt>(Op0->getOperand(0))->getZExtValue()));
627 mdconst::extract<ConstantInt>(Op0->getOperand(1))->getZExtValue()));
642 mdconst::extract<ConstantInt>(Node->getOperand(1))->getZExtValue()),
H A DAMDGPULibCalls.cpp590 if (!isa<ConstantInt>(PacketSize) || !isa<ConstantInt>(PacketAlign))
592 unsigned Size = cast<ConstantInt>(PacketSize)->getZExtValue();
593 Align Alignment = cast<ConstantInt>(PacketAlign)->getAlignValue();
875 ConstantInt *CINT;
885 CINT = dyn_cast<ConstantInt>(opr1);
894 CINT = CDV ? dyn_cast_or_null<ConstantInt>(CDV->getSplatValue()) : nullptr;
1156 ConstantInt *CINT = dyn_cast<ConstantInt>(opr1);
1396 CI->replaceAllUsesWith(ConstantInt
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp413 const ConstantInt *CVal =
415 ? dyn_cast_or_null<const ConstantInt>(C->getSplatValue())
416 : dyn_cast<const ConstantInt>(C));
840 if (!isa<LoadInst>(Op) && !isa<ConstantInt>(Op))
861 if (const ConstantInt *C = dyn_cast<ConstantInt>(I->getOperand(1)))
1021 if (ConstantInt *CI = dyn_cast<ConstantInt>(UserI->getOperand(1)))
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h161 ConstantInt *getIndex(uint64_t Value) const {
162 return ConstantInt::get(getIndexType(), Value);

Completed in 551 milliseconds

1234567891011>>