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

References

examples/BrainF/BrainF.cpp
  172         getGetElementPtr(aberrormsg->getValueType(), aberrormsg, gep_params);
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  666         auto *Ty = A->getValueType();
include/llvm/IR/Function.h
  164     return cast<FunctionType>(getValueType());
include/llvm/IR/IRBuilder.h
 1881     return ConstantExpr::getInBoundsGetElementPtr(GV->getValueType(), GV,
lib/Analysis/GlobalsModRef.cpp
  328         if (GV.getValueType()->isPointerTy() &&
lib/Analysis/Lint.cpp
  480         Type *GTy = GV->getValueType();
lib/Analysis/MemoryBuiltins.cpp
  766   APInt Size(IntTyBits, DL.getTypeAllocSize(GV.getValueType()));
lib/Analysis/StackSafetyAnalysis.cpp
  191   const FunctionType *Type = cast<FunctionType>(Aliasee->getValueType());
lib/Analysis/ValueTracking.cpp
 3512     Type *GVTy = GV->getValueType();
lib/AsmParser/LLParser.cpp
 1085     if (GVal->getValueType() != Ty)
lib/Bitcode/Reader/BitcodeReader.cpp
 3362   assert(NewGA->getValueType() == flattenPointerTypes(FullTy) &&
lib/Bitcode/Writer/BitcodeWriter.cpp
 1171     MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV.getValueType()));
 1270     Vals.push_back(VE.getTypeID(GV.getValueType()));
 1351     Vals.push_back(VE.getTypeID(A.getValueType()));
 1374     Vals.push_back(VE.getTypeID(I.getValueType()));
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  500   uint64_t Size = DL.getTypeAllocSize(GV->getValueType());
 1312   bool IsFunction = GIS.getValueType()->isFunctionTy();
 1346     if (MAI->hasDotTypeDotSizeDirective() && GA->getValueType()->isSized() &&
 1349       uint64_t Size = DL.getTypeAllocSize(GA->getValueType());
 1581       assert(isa<ArrayType>(LU->getValueType()) &&
lib/CodeGen/CodeGenPrepare.cpp
 1823           DL->getTypeAllocSize(GV->getValueType()) >=
lib/CodeGen/GlobalMerge.cpp
  224         return DL.getTypeAllocSize(GV1->getValueType()) <
  225                DL.getTypeAllocSize(GV2->getValueType());
  462       Type *Ty = Globals[j]->getValueType();
  638     Type *Ty = GV.getValueType();
lib/CodeGen/LowerEmuTLS.cpp
  128   Type *GVType = GV->getValueType();
lib/CodeGen/TargetLoweringBase.cpp
 1700     if (UnsafeStackPtr->getValueType() != StackPtrTy)
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  809   if (!LHS->hasGlobalUnnamedAddr() || !LHS->getValueType()->isFunctionTy())
 1789   if (!LHS->hasGlobalUnnamedAddr() || !LHS->getValueType()->isFunctionTy())
lib/ExecutionEngine/ExecutionEngine.cpp
  108     Type *ElTy = GV->getValueType();
 1305   Type *ElTy = GV->getValueType();
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  289     Function::Create(cast<FunctionType>(F.getValueType()),
  326       Dst, GV.getValueType(), GV.isConstant(),
  356   auto *NewA = GlobalAlias::create(OrigA.getValueType(),
lib/IR/AsmWriter.cpp
 3285   TypePrinter.print(GV->getValueType(), Out);
 3341   TypePrinter.print(GIS->getValueType(), Out);
lib/IR/AutoUpgrade.cpp
  842   ArrayType *ATy = dyn_cast<ArrayType>(GV->getValueType());
lib/IR/ConstantFold.cpp
 1505       Type *Ty = GVar->getValueType();
lib/IR/Core.cpp
 1988   return wrap(unwrap<GlobalValue>(Global)->getValueType());
lib/IR/DataLayout.cpp
  850   Type *ElemType = GV->getValueType();
lib/IR/Globals.cpp
  398     assert(InitVal->getType() == getValueType() &&
lib/IR/Mangler.cpp
  207   if (!GV->getValueType()->isFunctionTy()) {
lib/IR/Value.cpp
  664     if (GV->getValueType()->isSized() && !GV->hasExternalWeakLinkage()) {
  667       DerefBytes = DL.getTypeStoreSize(GV->getValueType());
  690         Type *ObjectType = GVar->getValueType();
lib/IR/Verifier.cpp
  575     Assert(GVar && GVar->getValueType()->isArrayTy(),
  622     Assert(GV.getInitializer()->getType() == GV.getValueType(),
  643     if (ArrayType *ATy = dyn_cast<ArrayType>(GV.getValueType())) {
  667     Type *GVType = GV.getValueType();
  702   if (auto *VTy = dyn_cast<VectorType>(GV.getValueType()))
lib/LTO/LTO.cpp
  962     if (OldGV && DL.getTypeAllocSize(OldGV->getValueType()) == I.second.Size) {
lib/Linker/IRMover.cpp
  627       new GlobalVariable(DstM, TypeMap.get(SGVar->getValueType()),
  671   auto *Ty = TypeMap.get(SGIS->getValueType());
  695     else if (SGV->getValueType()->isFunctionTy())
  697           Function::Create(cast<FunctionType>(TypeMap.get(SGV->getValueType())),
  701           DstM, TypeMap.get(SGV->getValueType()),
  755     ArrayType *DAT = cast<ArrayType>(DGV->getValueType());
  756     ArrayType *SAT = cast<ArrayType>(SGV.getValueType());
  842   Type *EltTy = cast<ArrayType>(TypeMap.get(SrcGV->getValueType()))
  868     ArrayType *DstTy = cast<ArrayType>(DstGV->getValueType());
lib/Linker/LinkModules.cpp
  194     uint64_t DstSize = DstDL.getTypeAllocSize(DstGV->getValueType());
  195     uint64_t SrcSize = SrcDL.getTypeAllocSize(SrcGV->getValueType());
  295     uint64_t DestSize = DL.getTypeAllocSize(Dest.getValueType());
  296     uint64_t SrcSize = DL.getTypeAllocSize(Src.getValueType());
  443     if (auto *FTy = dyn_cast<FunctionType>(Alias.getValueType())) {
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  802       Type *Ty = GV->getValueType();
lib/Target/AArch64/AArch64ISelLowering.cpp
11704   Type *T = GV->getValueType();
lib/Target/AArch64/AArch64PromoteConstant.cpp
  497         Builder.CreateLoad(PromotedGV.getValueType(), &PromotedGV);
lib/Target/AArch64/AArch64Subtarget.cpp
  240   if (AllowTaggedGlobals && !isa<FunctionType>(GV->getValueType()))
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  310     uint64_t Size = DL.getTypeAllocSize(GV->getValueType());
lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
   52     Align = DL.getABITypeAlignment(GV.getValueType());
   60   LDSSize += DL.getTypeAllocSize(GV.getValueType());
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  662           Align = DL.getABITypeAlignment(GV.getValueType());
  668         uint64_t AllocSize = DL.getTypeAllocSize(GV.getValueType());
lib/Target/AMDGPU/SIISelLowering.cpp
 4420   return (GV->getValueType()->isFunctionTy() ||
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  241   Type *GType = GVar->getValueType();
  341   const Type *GTy = GO->getValueType();
lib/Target/Lanai/LanaiTargetObjectFile.cpp
   97   Type *Ty = GVA->getValueType();
lib/Target/Mips/MipsTargetObjectFile.cpp
  138   Type *Ty = GVA->getValueType();
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1013   Type *ETy = GVar->getValueType();
 1327   Type *ETy = GVar->getValueType();
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
   84           M, GV->getValueType(), GV->isConstant(),
  177           PointerType::get(GV->getValueType(), llvm::ADDRESS_SPACE_GENERIC));
lib/Target/PowerPC/PPCISelLowering.cpp
 4940     return G->getGlobal()->getValueType()->isFunctionTy();
lib/Target/RISCV/RISCVTargetObjectFile.cpp
   64   Type *Ty = GVA->getValueType();
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  137       if (G.getValueType()->isSized()) {
  138         uint16_t Size = M.getDataLayout().getTypeAllocSize(G.getValueType());
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
 1106       if (GV->getValueType()->isFunctionTy()) {
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
   52   if (const auto *FuncTy = dyn_cast<FunctionType>(Global->getValueType())) {
lib/Target/XCore/XCoreAsmPrinter.cpp
   92   if (ArrayType *ATy = dyn_cast<ArrayType>(GV->getValueType())) {
lib/Target/XCore/XCoreISelLowering.cpp
  253   if (GV->getValueType()->isFunctionTy())
  268   Type *ObjType = GV->getValueType();
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  190   ArrayType *NewType = createLoweredType(GV->getValueType());
  211     Value *Addr = Builder.CreateInBoundsGEP(NewGV->getValueType(), NewGV,
lib/Target/XCore/XCoreTargetObjectFile.cpp
  120   Type *ObjType = GO->getValueType();
lib/Transforms/IPO/ExtractGV.cpp
  131           Type *Ty =  CurI->getValueType();
lib/Transforms/IPO/FunctionImport.cpp
  924     if (GV.getValueType()->isFunctionTy())
  926           Function::Create(cast<FunctionType>(GV.getValueType()),
  931           new GlobalVariable(*GV.getParent(), GV.getValueType(),
lib/Transforms/IPO/GlobalOpt.cpp
  123   Types.push_back(GV->getValueType());
  505       uint64_t Size = DL.getTypeAllocSizeInBits(NGV->getValueType());
  565     Type *NewTy = NewGlobals[Val]->getValueType();
  878   if (NewGV->getType() != GV->getValueType())
  879     RepValue = ConstantExpr::getBitCast(RepValue, GV->getValueType());
  911       Value *LV = new LoadInst(InitBool->getValueType(), InitBool,
 1048         new LoadInst(GV->getValueType(), GV, GV->getName() + ".val", InsertPt);
 1365         new LoadInst(cast<GlobalVariable>(FieldGlobals[i])->getValueType(),
 1415       Type *ValTy = cast<GlobalValue>(FieldGlobals[i])->getValueType();
 1607   Type *GVElType = GV->getValueType();
 1718           StoreVal = new LoadInst(NewGV->getValueType(), NewGV,
 1735       LoadInst *NLI = new LoadInst(NewGV->getValueType(), NewGV,
 1937       GV->getValueType()->isSingleValueType() &&
 1949     Type *ElemTy = GV->getValueType();
lib/Transforms/IPO/LowerTypeTests.cpp
  832       Alignment = Align(DL.getABITypeAlignment(GV->getValueType()));
  843     uint64_t InitSize = DL.getTypeAllocSize(GV->getValueType());
 1272   GV->setInitializer(Constant::getNullValue(GV->getValueType()));
 1298       Function::Create(cast<FunctionType>(F->getValueType()),
 1521               F->getValueType(), 0, GlobalValue::ExternalLinkage,
 1537             GlobalAlias::create(F->getValueType(), 0, F->getLinkage(), "",
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1499         Align(M.getDataLayout().getABITypeAlignment(B.GV->getValueType()));
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  810       uint64_t InitSize = DL.getTypeAllocSize(GV->getValueType());
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1803   Type *Ty = G->getValueType();
 2268     Type *Ty = G->getValueType();
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  165   Type *GType = G.getValueType();
  199     if (isa<FunctionType>(GA.getValueType()))
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  823                 Counters->getValueType(), Counters, 0, Edge);
  839                 Counters->getValueType(), Counters, 0, Edge);
 1018       unsigned Arcs = cast<ArrayType>(GV->getValueType())->getNumElements();
 1022                                        GV->getValueType(), GV, TwoZero32s)}));
 1215     Constant *Null = Constant::getNullValue(GV->getValueType());
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1315   auto *Alias = GlobalAlias::create(GV->getValueType(), GV->getAddressSpace(),
lib/Transforms/Instrumentation/InstrProfiling.cpp
  640   Value *Addr = Builder.CreateConstInBoundsGEP2_64(Counters->getValueType(),
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  880         Function8bitCounterArray->getValueType(), Function8bitCounterArray,
lib/Transforms/Scalar/PlaceSafepoints.cpp
  633   assert(F->getValueType() ==
lib/Transforms/Scalar/SCCP.cpp
  293     if (GV->getValueType()->isSingleValueType()) {
lib/Transforms/Utils/CloneModule.cpp
   64                                             I->getValueType(),
   77         Function::Create(cast<FunctionType>(I.getValueType()), I.getLinkage(),
   92       if (I->getValueType()->isFunctionTy())
   93         GV = Function::Create(cast<FunctionType>(I->getValueType()),
   98             *New, I->getValueType(), false, GlobalValue::ExternalLinkage,
  107     auto *GA = GlobalAlias::create(I->getValueType(),
lib/Transforms/Utils/Evaluator.cpp
  530             Type *ElemTy = GV->getValueType();
lib/Transforms/Utils/SimplifyCFG.cpp
 5137     Value *GEP = Builder.CreateInBoundsGEP(Array->getValueType(), Array,
 5140         cast<ArrayType>(Array->getValueType())->getElementType(), GEP,
tools/clang/lib/CodeGen/CGCUDANV.cpp
  450         CGM.getDataLayout().getTypeAllocSize(Var->getValueType());
tools/clang/lib/CodeGen/CGExpr.cpp
  400                 GV->getValueType()->getPointerTo(
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  228     return llvm::ConstantExpr::getGetElementPtr(ConstStr->getValueType(),
 1445     return llvm::ConstantExpr::getGetElementPtr(TypesGlobal->getValueType(),
 2432       llvm::ConstantExpr::getGetElementPtr(Vtable->getValueType(), Vtable, Two),
 3551           cast<llvm::GlobalVariable>(IvarList)->getValueType(), IvarList,
 3713         selectorList->getValueType(), selectorList, idxs);
tools/clang/lib/CodeGen/CGObjCMac.cpp
 1834   return llvm::ConstantExpr::getGetElementPtr(C->getValueType(), C, Idxs);
 7725     llvm::ConstantExpr::getInBoundsGetElementPtr(VTableGV->getValueType(),
tools/clang/lib/CodeGen/CGVTT.cpp
   83          VTable->getValueType(), VTable, Idxs, /*InBounds=*/true,
tools/clang/lib/CodeGen/CodeGenModule.cpp
 3779             GV->getValueType()->getPointerTo(
 4758       llvm::ConstantExpr::getGetElementPtr(GV->getValueType(), GV, Zeros);
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
   99         GV->getValueType(), GV, entry.Indices);
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1711   return llvm::ConstantExpr::getGetElementPtr(VTable->getValueType(), VTable,
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 1252         CGF.Builder.CreateConstInBoundsGEP2_32(GV->getValueType(), GV, 0, 0);
 1828         VTable->getValueType(), VTable, GEPIndices);
 3609           Bases->getValueType(), Bases,
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  214       auto *ImageB = ConstantExpr::getGetElementPtr(Image->getValueType(),
  216       auto *ImageE = ConstantExpr::getGetElementPtr(Image->getValueType(),
  233     auto *ImagesB = ConstantExpr::getGetElementPtr(Images->getValueType(),
unittests/IR/IRBuilderTest.cpp
   57   V = Builder.CreateLoad(GV->getValueType(), GV);
  180   V = Builder.CreateLoad(GV->getValueType(), GV);
  181   VDouble = Builder.CreateLoad(GVDouble->getValueType(), GVDouble);
  378   Value *V = Builder.CreateLoad(GV->getValueType(), GV);
  403   F = Builder.CreateLoad(GV->getValueType(), GV);
  590   Value *V = Builder.CreateLoad(G->getValueType(), G);
  657   Value *F = Builder.CreateLoad(GV->getValueType(), GV);