reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Constants.h
  123   static ConstantInt *get(LLVMContext &Context, const APInt &V);

References

examples/BrainF/BrainF.cpp
   91   ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal));
  105       ConstantInt::get(C, APInt(8, 0)),
  107       ConstantInt::get(C, APInt(32, 1)),
  108       ConstantInt::get(C, APInt(1, 0))
  119       CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax");
  124                                ConstantInt::get(C, APInt(32, memtotal/2)),
  248             CreateGEP(curhead, ConstantInt::get(C, APInt(32, curvalue)),
  283             CreateAdd(tape_0, ConstantInt::get(C, APInt(8, curvalue)), tapereg);
  447                                     ConstantInt::get(C, APInt(8, 0)), testreg);
examples/BrainF/BrainFDriver.cpp
  103                      ConstantInt::get(mod->getContext(), APInt(32, 0)), bb);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  487             ConstantInt::get(GVsM->getContext(), APInt(PtrBitWidth, StubAddr));
include/llvm/IR/IRBuilder.h
  375     return ConstantInt::get(Context, AI);
lib/Analysis/ConstantFolding.cpp
  601   return ConstantInt::get(IntType->getContext(), ResultVal);
  678       Constant *Res = ConstantInt::get(CE->getContext(), StrVal);
  910     Constant *C = ConstantInt::get(Ptr->getContext(), Offset + BasePtr);
 1323             ConstantInt::get(CE->getContext(),
 1738       return ConstantInt::get(Ty->getContext(), Val.bitcastToAPInt());
 1967       return ConstantInt::get(Ty->getContext(), Op->getValue().byteSwap());
 1971       return ConstantInt::get(Ty->getContext(), Op->getValue().reverseBits());
 2178         ConstantInt::get(Ty->getContext(), Res),
 2330           return ConstantInt::get(Ty->getContext(),
lib/Analysis/InlineCost.cpp
 1003       Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset);
 1004       Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset);
 1049       Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset);
 1050       Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset);
lib/Analysis/InstructionSimplify.cpp
 4077         auto *CI = ConstantInt::get(GEPTy->getContext(), BasePtrOffset);
 4083         auto *CI = ConstantInt::get(GEPTy->getContext(), BasePtrOffset - 1);
lib/Analysis/LazyValueInfo.cpp
 1709       return ConstantInt::get(V->getContext(), *SingleVal);
 1746       return ConstantInt::get(V->getContext(), *SingleVal);
lib/Analysis/MemoryBuiltins.cpp
  869     return std::make_pair(ConstantInt::get(Context, Const.first),
  870                           ConstantInt::get(Context, Const.second));
lib/Analysis/ScalarEvolution.cpp
  432   return getConstant(ConstantInt::get(getContext(), Val));
 2954           ConstantInt::get(getContext(), LHSC->getAPInt() * RHSC->getAPInt());
 3590       ConstantInt *Fold = ConstantInt::get(
 4538             ConstantInt::get(SA->getContext(),
 6385         Constant *X = ConstantInt::get(
 8555   ConstantInt *CX = ConstantInt::get(SE.getContext(), *X);
 8618       ConstantInt *C0 = ConstantInt::get(SE.getContext(), X);
 8623       ConstantInt *C1 = ConstantInt::get(SE.getContext(), X-1);
10842     ConstantInt *ExitValue = ConstantInt::get(SE.getContext(), ExitVal);
10854            ConstantInt::get(SE.getContext(), ExitVal - 1), SE)->getValue()) &&
lib/Analysis/ScalarEvolutionExpander.cpp
  264           ConstantInt::get(SE.getContext(), C->getAPInt().sdiv(FC->getAPInt()));
 2274       ConstantInt::get(Loc->getContext(), APInt::getNullValue(DstBits));
 2324                            ConstantInt::get(Loc->getContext(), MaxVal));
lib/Analysis/ValueTracking.cpp
 2725       Op1 = ConstantInt::get(V->getContext(), API);
 3239       return ConstantInt::get(Ctx, CI->getValue().trunc(8));
lib/AsmParser/LLParser.cpp
 5165     V = ConstantInt::get(Context, ID.APSIntVal);
lib/Bitcode/Reader/BitcodeReader.cpp
 2395       V = ConstantInt::get(Context, VInt);
 4406                 CaseVals.push_back(ConstantInt::get(Context, Low));
 4408               CaseVals.push_back(ConstantInt::get(Context, Low));
lib/CodeGen/CodeGenPrepare.cpp
 5801       Builder.CreateAnd(Load, ConstantInt::get(Ctx, DemandBits)));
 6262     Case.setValue(ConstantInt::get(Context, WideConst));
lib/CodeGen/GlobalISel/IRTranslator.cpp
 1903       auto *NewIdxCI = ConstantInt::get(CI->getContext(), NewIdx);
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
 1680     SrcMO.setCImm(ConstantInt::get(Ctx, Val));
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  341   ConstantInt *CI = ConstantInt::get(getMF().getFunction().getContext(), Val);
lib/CodeGen/SelectionDAG/FastISel.cpp
  432             getRegForValue(ConstantInt::get(V->getContext(), SIntVal));
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
 4024         DAG.getConstantPool(ConstantInt::get(*DAG.getContext(), FF.zext(64)),
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1194   return getConstant(*ConstantInt::get(*Context, Val), DL, VT, isT, isO);
 1212    Elt = ConstantInt::get(*getContext(), NewVal);
lib/IR/ConstantFold.cpp
  196     return ConstantInt::get(FP->getContext(),
  228     return ConstantInt::get(CI->getContext(), V);
  621       return ConstantInt::get(FPC->getContext(), IntVal);
  695       return ConstantInt::get(V->getContext(),
  702       return ConstantInt::get(V->getContext(),
  712       return ConstantInt::get(V->getContext(),
 1227         return ConstantInt::get(CI1->getContext(), C1V + C2V);
 1229         return ConstantInt::get(CI1->getContext(), C1V - C2V);
 1231         return ConstantInt::get(CI1->getContext(), C1V * C2V);
 1234         return ConstantInt::get(CI1->getContext(), C1V.udiv(C2V));
 1239         return ConstantInt::get(CI1->getContext(), C1V.sdiv(C2V));
 1242         return ConstantInt::get(CI1->getContext(), C1V.urem(C2V));
 1247         return ConstantInt::get(CI1->getContext(), C1V.srem(C2V));
 1249         return ConstantInt::get(CI1->getContext(), C1V & C2V);
 1251         return ConstantInt::get(CI1->getContext(), C1V | C2V);
 1253         return ConstantInt::get(CI1->getContext(), C1V ^ C2V);
 1256           return ConstantInt::get(CI1->getContext(), C1V.shl(C2V));
 1260           return ConstantInt::get(CI1->getContext(), C1V.lshr(C2V));
 1264           return ConstantInt::get(CI1->getContext(), C1V.ashr(C2V));
lib/IR/Constants.cpp
  330   Constant *C = ConstantInt::get(Ty->getContext(), V);
  345     return ConstantInt::get(Ty->getContext(),
  664   return get(Ty->getContext(), APInt(Ty->getBitWidth(), V, isSigned));
  676   ConstantInt *C = get(Ty->getContext(), V);
  688   return get(Ty->getContext(), APInt(Ty->getBitWidth(), Str, radix));
lib/IR/Core.cpp
 1307     return wrap(ConstantInt::get(Ty->getContext(),
lib/Target/AArch64/AArch64FastISel.cpp
 4272     return materializeInt(ConstantInt::get(*Context, APInt(RegSize, 0)), RetVT);
 4393     return materializeInt(ConstantInt::get(*Context, APInt(RegSize, 0)), RetVT);
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  378           ConstantInt::get(Ctx, APInt(32, StringRef("0"), 10));
  395           ConstantInt::get(Ctx, APInt(32, StringRef("4"), 10));
lib/Target/ARM/ARMCodeGenPrepare.cpp
  488     auto *NewConst = ConstantInt::get(Ctx, Const->getValue().abs());
lib/Target/ARM/ARMLegalizerInfo.cpp
  466                              *ConstantInt::get(Ctx, AsInteger));
lib/Target/Hexagon/HexagonConstPropagation.cpp
 1094   return ConstantInt::get(CX, Val);
lib/Target/Hexagon/HexagonGenExtract.cpp
  173     CM = ConstantInt::get(Ctx, A);
lib/Target/X86/X86ISelLowering.cpp
 9657         ConstVecOps[i] = ConstantInt::get(Context, C->getAPIntValue());
18876       ConstantInt::get(*DAG.getContext(), FF.zext(64)), PtrVT);
lib/Transforms/IPO/Attributor.cpp
 3605             BI, ConstantInt::get(F->getContext(), APInt(8, 0, false)), Size,
lib/Transforms/InstCombine/InstCombineAddSub.cpp
 1044             ConstantInt::get(X->getType()->getContext(), C0 * C1);
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1246         Value *NewVal = ConstantInt::get(AndC->getType()->getContext(), N);
lib/Transforms/InstCombine/InstCombineShifts.cpp
  670                                      ConstantInt::get(I.getContext(), MaskV),
  702           Constant *Mask = ConstantInt::get(I.getContext(), Bits);
  737           Constant *Mask = ConstantInt::get(I.getContext(), Bits);
lib/Transforms/InstCombine/InstructionCombining.cpp
 2636       Case.setValue(ConstantInt::get(SI.getContext(), TruncatedCase));
lib/Transforms/Scalar/GuardWidening.cpp
  570           ConstantInt *NewRHS = ConstantInt::get(Cond0->getContext(), NewRHSAP);
  669       Check.setOffset(ConstantInt::get(Ctx, NewOffset));
  677         Check.setOffset(ConstantInt::get(Ctx, NewOffset));
lib/Transforms/Scalar/Reassociate.cpp
 1560           Factor = ConstantInt::get(CI->getContext(), -CI->getValue());
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  409     Idx = ConstantInt::get(Idx->getContext(), One << Idx->getValue());
  512         ConstantInt::get(RHS->getContext(), One << RHS->getValue());
lib/Transforms/Utils/LowerSwitch.cpp
  289   ConstantInt *NewUpperBound = ConstantInt::get(NewLowerBound->getContext(),
  509     LowerBound = ConstantInt::get(SI->getContext(), Min);
  510     UpperBound = ConstantInt::get(SI->getContext(), Max);
lib/Transforms/Utils/SimplifyCFG.cpp
  556               ConstantInt::get(C->getContext(),
  578           Vals.push_back(ConstantInt::get(C->getContext(),
  623       Vals.push_back(ConstantInt::get(I->getContext(), Tmp));
 5052       LinearMultiplier = ConstantInt::get(M.getContext(), DistToPrev);
 5071     BitMap = ConstantInt::get(M.getContext(), TableInt);
 5454     ConstantInt *TableMask = ConstantInt::get(Mod.getContext(), MaskInt);
lib/Transforms/Utils/SimplifyIndVar.cpp
  141       D = ConstantInt::get(UseInst->getContext(),
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
   99        ConstantAsMetadata::get(ConstantInt::get(Context, APInt(32, 1)))});
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1540       return RValue::get(llvm::ConstantInt::get(getLLVMContext(),
 2422     Value *SizeVal = llvm::ConstantInt::get(Builder.getContext(), Size);
 2448     Value *SizeVal = llvm::ConstantInt::get(Builder.getContext(), Size);
 2489     Value *SizeVal = llvm::ConstantInt::get(Builder.getContext(), Size);
 4171         ArgValue = llvm::ConstantInt::get(getLLVMContext(), Result);
 6424       Ops.push_back(llvm::ConstantInt::get(getLLVMContext(), Result));
 7476       Ops.push_back(llvm::ConstantInt::get(getLLVMContext(), Result));
10185     Ops.push_back(llvm::ConstantInt::get(getLLVMContext(), Result));
13207     Value *M4Value = llvm::ConstantInt::get(getLLVMContext(), M4);
13208     Value *M5Value = llvm::ConstantInt::get(getLLVMContext(), M5);
13238     Value *M4Value = llvm::ConstantInt::get(getLLVMContext(), M4);
13268     Value *M4Value = llvm::ConstantInt::get(getLLVMContext(), M4);
14092     Value *Args[] = {llvm::ConstantInt::get(getLLVMContext(), SegConst),
14093                      llvm::ConstantInt::get(getLLVMContext(), MemConst),
14103     Value *Arg = llvm::ConstantInt::get(getLLVMContext(), SegConst);
14233     Value *Lane = llvm::ConstantInt::get(getLLVMContext(), LaneConst);
14261     Value *Lane = llvm::ConstantInt::get(getLLVMContext(), LaneConst);
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 1358         C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value->getInt());
 1764           llvm::ConstantInt::get(CGM.getLLVMContext(), TA.getAsIntegral())));
tools/clang/lib/CodeGen/CGExpr.cpp
 1617     Check = Builder.CreateICmpULE(Value, llvm::ConstantInt::get(Ctx, End));
 1620         Builder.CreateICmpSLE(Value, llvm::ConstantInt::get(Ctx, End));
 1622         Builder.CreateICmpSGE(Value, llvm::ConstantInt::get(Ctx, Min));
tools/clang/lib/CodeGen/CGExprConstant.cpp
  218       add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar),
  247         add(llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar),
  262         ToUpdate = llvm::ConstantInt::get(CGM.getLLVMContext(), BitsThisChar);
 2021     return llvm::ConstantInt::get(CGM.getLLVMContext(), Value.getInt());
 2023     return llvm::ConstantInt::get(CGM.getLLVMContext(),
 2028     Complex[0] = llvm::ConstantInt::get(CGM.getLLVMContext(),
 2030     Complex[1] = llvm::ConstantInt::get(CGM.getLLVMContext(),
 2043       return llvm::ConstantInt::get(CGM.getLLVMContext(),
 2068         Inits[I] = llvm::ConstantInt::get(CGM.getLLVMContext(), Elt.getInt());
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1446       Value *LowBits = ConstantInt::get(
 1477       Value *Max = ConstantInt::get(
 1487       Value *Min = ConstantInt::get(
 4607         return llvm::ConstantInt::get(VMContext, N);
tools/clang/lib/CodeGen/CGStmt.cpp
 1862         return llvm::ConstantInt::get(getLLVMContext(), IntResult);
 1867       return llvm::ConstantInt::get(getLLVMContext(), Result.Val.getInt());
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 1546             llvm::ConstantInt::get(CGF.getLLVMContext(), Alignment));
unittests/Analysis/ScalarEvolutionTest.cpp
  177   ConstantInt *Ci32 = ConstantInt::get(Context, APInt(32, 1));
  695     PN->addIncoming(ConstantInt::get(Context, APInt(64, 100)), PrevBB);
  697                                 ConstantInt::get(Context, APInt(64, 90)), "cmp",
  706         PN, ConstantInt::get(Context, APInt(64, -1)), "dec", IncBB);
 1014       ConstantInt::get(Context, APInt(64, 0x8000000000000000U, true));
 1015   auto *Int64_32 = ConstantInt::get(Context, APInt(64, 32));
 1071   auto *MinInt32 = ConstantInt::get(Context, APInt(32, 0x80000000U, true));
 1072   auto *Int32_16 = ConstantInt::get(Context, APInt(32, 16));
 1221   ConstantInt *C = ConstantInt::get(Context, APInt(64, -1));
 1228   ConstantInt *Cond = ConstantInt::get(Context, APInt(1, 0));
 1273   ConstantInt *C = ConstantInt::get(Context, APInt(64, -1));
 1280   ConstantInt *Cond = ConstantInt::get(Context, APInt(1, 0));
 1323   ConstantInt *C = ConstantInt::get(Context, APInt(64, -1));
 1374   ConstantInt *C = ConstantInt::get(Context, APInt(64, -1));
 1425   ConstantInt *C = ConstantInt::get(Context, APInt(64, 1));
unittests/CodeGen/GlobalISel/MachineIRBuilderTest.cpp
   59   ConstantInt *CI = ConstantInt::get(Ctx, APV32);
unittests/CodeGen/MachineOperandTest.cpp
   89   ConstantInt *CImm = ConstantInt::get(Context, Int);
unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
  169   endFunctionWithRet(Inner, ConstantInt::get(Context, APInt(32, innerRetVal)));
unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
   83     Value *ReturnVal = ConstantInt::get(Context, APInt(32, returnCode));
  132     Constant *IV = ConstantInt::get(Context, APInt(32, InitialValue));
  168     Value *Zero = ConstantInt::get(Context, APInt(32, 0));
  179     Value *One = ConstantInt::get(Context, APInt(32, 1));
unittests/IR/ConstantsTest.cpp
  217   Constant *Big = ConstantInt::get(Context, APInt{256, uint64_t(-1), true});
unittests/IR/InstructionsTest.cpp
  319   ConstantInt *Ci32a = ConstantInt::get(C, APInt(32, 1492));
  320   ConstantInt *Ci32b = ConstantInt::get(C, APInt(32, 1948));
unittests/IR/MetadataTest.cpp
  180       ConstantAsMetadata::get(ConstantInt::get(Context, APInt(8, 0)));
 2545       ConstantAsMetadata::get(ConstantInt::get(Context, APInt(8, 0)));
 2562       ConstantAsMetadata::get(ConstantInt::get(Context, APInt(8, 0)));