|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h 482 unsigned PtrBitWidth = DL.getPointerTypeSizeInBits(F->getType());
489 StubAddrCI, F->getType());
491 F->getType()->getAddressSpace(),
656 auto *StubPtr = createImplPointer(*F->getType(), *M,
675 A->getType()->getAddressSpace());
include/llvm/Transforms/Utils/Evaluator.h 51 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType()));
lib/Analysis/ConstantFolding.cpp 292 unsigned BitWidth = DL.getIndexTypeSizeInBits(GV->getType());
lib/Analysis/ValueTracking.cpp 2035 GV->getType()->getAddressSpace() == 0)
lib/AsmParser/LLParser.cpp 989 if (GVal->getType() != GA->getType())
989 if (GVal->getType() != GA->getType())
5449 if (Fn->getType() != PFT)
5453 getTypeString(Fn->getType()) + "'");
5469 if (Fn->getType() != PFT)
5473 getTypeString(Fn->getType()) + "'");
lib/Bitcode/Reader/BitcodeReader.cpp 2266 if (isa<GlobalAlias>(GIS) && C->getType() != GIS->getType())
3157 assert(NewGV->getType() == flattenPointerTypes(FullTy) &&
3304 assert(Func->getType() == flattenPointerTypes(FullTy) &&
3395 assert(NewGA->getType() == flattenPointerTypes(FullTy) &&
lib/Bitcode/Writer/BitcodeWriter.cpp 1271 Vals.push_back(GV.getType()->getAddressSpace() << 2 | 2 | GV.isConstant());
1352 Vals.push_back(A.getType()->getAddressSpace());
1375 Vals.push_back(I.getType()->getAddressSpace());
2518 Record.push_back(VE.getTypeID(BA->getFunction()->getType()));
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 611 unsigned PtrSize = DL.getPointerTypeSize(GV->getType());
lib/CodeGen/CodeGenPrepare.cpp 2105 BaseGV->getType() != other.BaseGV->getType())
2105 BaseGV->getType() != other.BaseGV->getType())
4926 DL->isNonIntegralPointerType(AddrMode.BaseGV->getType())))
lib/CodeGen/GlobalISel/IRTranslator.cpp 2313 R << "unable to lower arguments: " << ore::NV("Prototype", F.getType());
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp 195 GV->getType()->getAddressSpace() &&
lib/CodeGen/GlobalMerge.cpp 623 PointerType *PT = dyn_cast<PointerType>(GV.getType());
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 1363 unsigned BitWidth = getDataLayout().getPointerTypeSizeInBits(GV->getType());
9262 unsigned IdxWidth = getDataLayout().getIndexTypeSizeInBits(GV->getType());
9351 return getGlobal()->getType()->getAddressSpace();
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 1372 << ore::NV("Prototype", Fn.getType());
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 813 if (LHS->getType()->getPointerAddressSpace() != 0 ||
814 RHS->getType()->getPointerAddressSpace() != 0 || LHS->isThreadLocal() ||
1577 if (LHS->getType()->getPointerAddressSpace() != 0 ||
1578 RHS->getType()->getPointerAddressSpace() != 0)
1793 if (LHS->getType()->getPointerAddressSpace() != 0 ||
1794 RHS->getType()->getPointerAddressSpace() != 0 || LHS->isThreadLocal() ||
lib/ExecutionEngine/ExecutionEngine.cpp 1204 LinkedGlobalsMap[std::make_pair(GV.getName(), GV.getType())];
1232 LinkedGlobalsMap[std::make_pair(GV.getName(), GV.getType())]) {
1262 LinkedGlobalsMap[std::make_pair(GV->getName(), GV->getType())];
1275 LinkedGlobalsMap[std::make_pair(GV.getName(), GV.getType())])
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp 295 << *F->getType() << " __main\n";
lib/ExecutionEngine/Orc/IndirectionUtils.cpp 243 LoadInst *ImplAddr = Builder.CreateLoad(F.getType(), &ImplPointer);
328 GV.getThreadLocalMode(), GV.getType()->getAddressSpace());
357 OrigA.getType()->getPointerAddressSpace(),
lib/IR/AsmWriter.cpp 1164 assert(!V->getType()->isVoidTy() && "Doesn't need a slot!");
3281 if (unsigned AddressSpace = GV->getType()->getAddressSpace())
3348 TypePrinter.print(GIS->getType(), Out);
lib/IR/ConstantFold.cpp 1596 GV->getType()->getAddressSpace()))
1827 GV->getType()->getAddressSpace())) {
1839 GV->getType()->getAddressSpace())) {
lib/IR/Constants.cpp 1497 getFunction()->getType()->getContext().pImpl
lib/IR/Function.cpp 206 return getType()->getContext();
lib/IR/Globals.cpp 112 PointerType *PtrTy = getType();
505 PointerType *PTy = Aliasee->getType();
523 assert((!Aliasee || Aliasee->getType() == getType()) &&
lib/IR/Module.cpp 160 if (F->getType() != PTy)
215 Type *GVTy = GV->getType();
lib/IR/TypeFinder.cpp 36 incorporateType(G.getType());
43 incorporateType(A.getType());
51 incorporateType(FI.getType());
lib/IR/Verifier.cpp 759 Assert(GA.getType() == Aliasee->getType(),
lib/LTO/LTO.cpp 975 OldGV->replaceAllUsesWith(ConstantExpr::getBitCast(GV, OldGV->getType()));
lib/Linker/IRMover.cpp 631 SGVar->getType()->getAddressSpace());
674 GIS = GlobalAlias::create(Ty, SGIS->getType()->getPointerAddressSpace(),
678 GIS = GlobalIFunc::create(Ty, SGIS->getType()->getPointerAddressSpace(),
705 SGV->getType()->getAddressSpace());
750 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
750 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
762 if (DGV->getType() == SGV.getType()) {
762 if (DGV->getType() == SGV.getType()) {
771 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
771 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
776 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
776 TypeMap.addTypeMapping(DGV->getType(), SGV.getType());
921 SrcGV->getType()->getAddressSpace());
926 Constant *Ret = ConstantExpr::getBitCast(NG, TypeMap.get(SrcGV->getType()));
936 std::make_pair(DstGV, ConstantExpr::getBitCast(NG, DstGV->getType())));
1031 NewGV, TypeMap.get(SGV->getType()));
1040 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewGV, DGV->getType())));
lib/Linker/LinkModules.cpp 441 PointerType &Ty = *cast<PointerType>(Alias.getType());
lib/Object/IRSymtab.cpp 268 GV->getType()->getElementType());
lib/Target/AArch64/AArch64FastISel.cpp 466 EVT DestEVT = TLI.getValueType(DL, GV->getType(), true);
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp 121 unsigned AS = GV.getType()->getAddressSpace();
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 651 if (GV.getType()->getAddressSpace() != AMDGPUAS::LOCAL_ADDRESS)
lib/Target/AMDGPU/SIISelLowering.cpp 4412 return (GV->getType()->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS ||
4413 GV->getType()->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS_32BIT) &&
4421 GV->getType()->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS ||
4422 GV->getType()->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS ||
4423 GV->getType()->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS_32BIT) &&
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp 545 return GV->getType()->getAddressSpace() == AMDGPUAS::LOCAL_ADDRESS;
549 return GV->getType()->getAddressSpace() == AMDGPUAS::GLOBAL_ADDRESS;
553 return GV->getType()->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS ||
554 GV->getType()->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS_32BIT;
lib/Target/ARM/ARMFastISel.cpp 573 unsigned Align = DL.getPrefTypeAlignment(GV->getType());
576 Align = DL.getTypeAllocSize(GV->getType());
2193 assert(GV->getType() == GVTy && "We miscomputed the type for the global!");
lib/Target/AVR/AVR.h 44 return cast<PointerType>(V->getType())->getAddressSpace() == ProgramMemory;
lib/Target/BPF/BTFDebug.cpp 1116 uint32_t Size = DL.getTypeAllocSize(Global.getType()->getElementType());
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 666 PointerType *Pty = gv->getType();
1012 PointerType *PTy = GVar->getType();
1330 emitPTXAddressSpace(GVar->getType()->getAddressSpace(), O);
1726 if (GVar->getType()->getAddressSpace() != 0) {
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp 80 if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC &&
142 Constant *BitCastNewGV = ConstantExpr::getPointerCast(NewGV, GV->getType());
lib/Target/PowerPC/PPCAsmPrinter.cpp 1771 uint64_t Size = DL.getTypeAllocSize(GV->getType()->getElementType());
lib/Target/SystemZ/SystemZConstantPoolValue.cpp 20 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {}
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp 138 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType()));
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp 75 else if (U.get()->getType() != F.getType()) {
lib/Target/XCore/XCoreLowerThreadLocal.cpp 186 !GV->getType()->isSized() || isZeroLengthArray(GV->getType()))
186 !GV->getType()->isSized() || isZeroLengthArray(GV->getType()))
199 GV->getType()->getAddressSpace(),
lib/Transforms/Coroutines/CoroSplit.cpp 828 auto *ArrTy = ArrayType::get(Part->getType(), Args.size());
1268 ReturnPHIs.push_back(Builder.CreatePHI(Continuation->getType(),
lib/Transforms/IPO/Attributor.cpp 4620 Fn->replaceAllUsesWith(UndefValue::get(Fn->getType()));
4650 F->replaceAllUsesWith(UndefValue::get(F->getType()));
lib/Transforms/IPO/ConstantMerge.cpp 98 GV->getType()->getAddressSpace() != 0 || GV->hasSection() ||
lib/Transforms/IPO/DeadArgumentElimination.cpp 248 Fn.replaceAllUsesWith(ConstantExpr::getBitCast(NF, Fn.getType()));
lib/Transforms/IPO/FunctionImport.cpp 935 GV.getType()->getAddressSpace());
1057 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewFn, GA->getType()));
lib/Transforms/IPO/GlobalDCE.cpp 408 F->replaceNonMetadataUsesWith(ConstantPointerNull::get(F->getType()));
lib/Transforms/IPO/GlobalOpt.cpp 477 StartAlignment = DL.getABITypeAlignment(GV->getType());
490 GV->getType()->getAddressSpace());
526 GV->getType()->getAddressSpace());
864 if (BCI->getType() == NewGV->getType()) {
878 if (NewGV->getType() != GV->getValueType())
1298 unsigned AS = GV->getType()->getPointerAddressSpace();
1634 GV->getType()->getAddressSpace());
1664 DL.getTypeAllocSizeInBits(NewGV->getType()->getElementType()) / 8;
1938 GV->getType()->getAddressSpace() == 0 &&
2791 J->replaceAllUsesWith(ConstantExpr::getBitCast(Aliasee, J->getType()));
lib/Transforms/IPO/GlobalSplit.cpp 135 GV.replaceAllUsesWith(UndefValue::get(GV.getType()));
lib/Transforms/IPO/LowerTypeTests.cpp 375 ConstantExpr::getBitCast(P.second, P.first->getType()));
877 assert(GV->getType()->getAddressSpace() == 0);
1047 assert(F->getType()->getAddressSpace() == 0);
1305 Constant::getNullValue(F->getType())),
1306 JT, Constant::getNullValue(F->getType()));
1515 F->getType());
1534 assert(F->getType()->getAddressSpace() == 0);
lib/Transforms/IPO/MergeFunctions.cpp 446 Constant *BitcastNew = ConstantExpr::getBitCast(New, Old->getType());
766 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType());
767 PointerType *PtrType = G->getType();
837 Constant *BitcastF = ConstantExpr::getBitCast(F, G->getType());
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp 161 F.replaceAllUsesWith(ConstantExpr::getBitCast(NewF, F.getType()));
lib/Transforms/InstCombine/InstCombineCalls.cpp 4333 Constant::getNullValue(CalleeF->getType()));
4796 NestF->getType() == PointerType::getUnqual(NewFTy) ?
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 813 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType()));
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 1314 GV->getType());
lib/Transforms/Scalar/ConstantHoisting.cpp 404 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType());
lib/Transforms/Scalar/LoopStrengthReduce.cpp 557 BaseGV ? BaseGV->getType() :
774 S = SE.getConstant(GV->getType(), 0);
lib/Transforms/Utils/CloneModule.cpp 69 I->getType()->getAddressSpace());
100 I->getThreadLocalMode(), I->getType()->getAddressSpace());
108 I->getType()->getPointerAddressSpace(),
lib/Transforms/Utils/CtorUtils.cpp 56 if (V->getType() != GCL->getType())
57 V = ConstantExpr::getBitCast(V, GCL->getType());
lib/Transforms/Utils/SanitizerStats.cpp 90 ConstantExpr::getBitCast(NewModuleStatsGV, ModuleStatsGV->getType()));
lib/Transforms/Utils/ValueMapper.cpp 992 cast<ArrayType>(GV.getType()->getElementType()), Elements));
tools/bugpoint/CrashDebugger.cpp 281 PointerType *Ty = cast<PointerType>(Alias.getType());
289 PointerType *Ty = cast<PointerType>(I.getType());
tools/bugpoint/ExtractFunction.cpp 233 StructType *STy = StructType::get(Int32Ty, TorList[0].first->getType());
tools/bugpoint/Miscompilation.cpp 864 Constant *NullPtr = ConstantPointerNull::get(F->getType());
866 *F->getParent(), F->getType(), false,
883 new LoadInst(F->getType(), Cache, "fpcache", EntryBB);
tools/clang/lib/CodeGen/CGBlocks.cpp 1455 auto *InitVar = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
tools/clang/lib/CodeGen/CGCUDANV.cpp 722 llvm::FunctionType::get(IntTy, CleanupFn->getType(), false);
tools/clang/lib/CodeGen/CGCXX.cpp 142 if (Ref->getType() != AliasType)
191 assert(Entry->getType() == AliasType &&
tools/clang/lib/CodeGen/CGDecl.cpp 337 if (GV->getType()->getElementType() != Init->getType()) {
355 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
tools/clang/lib/CodeGen/CGDeclCXX.cpp 420 TheModule, InitFunc->getType(), /*isConstant=*/true,
tools/clang/lib/CodeGen/CGException.cpp 347 if (Fn->getType() != CXXFn.getCallee()->getType())
tools/clang/lib/CodeGen/CGExprConstant.cpp 1559 placeholder->getType());
tools/clang/lib/CodeGen/CGObjCGNU.cpp 1412 OldGV->getType()));
1553 auto *InitVar = new llvm::GlobalVariable(TheModule, LoadFunction->getType(),
1652 auto *InitVar = new llvm::GlobalVariable(CGM.getModule(), Init->getType(),
1960 llvm::ConstantExpr::getBitCast(classStruct, Placeholder->getType()));
1973 classStruct->getType(), false, llvm::GlobalValue::ExternalLinkage,
2113 new llvm::GlobalVariable(TheModule, ClassSymbol->getType(), true,
2976 ClassRef->getType()));
3645 auto allStaticsArray = builder.beginArray(fileStatics->getType());
3647 allStaticsArray.addNullPointer(fileStatics->getType());
3752 LongTy, LongTy, PtrToInt8Ty, symtab->getType(), IntTy
3826 llvm::Constant::getNullValue(RegisterAlias->getType()));
tools/clang/lib/CodeGen/CGObjCMac.cpp 3606 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
3669 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
3700 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
3714 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
7266 if (!GV || GV->getType() != ObjCTypes.ClassnfABITy->getPointerTo()) {
7275 llvm::ConstantExpr::getBitCast(NewGV, GV->getType()));
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 1295 llvm::ConstantExpr::getBitCast(GA, OrigAddr->getType()));
tools/clang/lib/CodeGen/CGVTables.cpp 462 Callee = llvm::ConstantExpr::getBitCast(Callee, Fn->getType());
535 llvm::ConstantExpr::getBitCast(ThunkFn, OldThunkFn->getType());
tools/clang/lib/CodeGen/CodeGenModule.cpp 322 GV->getType()->getPointerElementType());
352 GA->getIndirectSymbol(), Alias->getType());
364 Alias->replaceAllUsesWith(llvm::UndefValue::get(Alias->getType()));
2756 if (!GV || (GV->getType()->getElementType() != Ty)) {
3150 (Entry->getType()->getElementType() == Ty)) {
3199 F, Entry->getType()->getElementType()->getPointerTo());
3258 assert(F->getType()->getElementType() == Ty);
3426 if (Entry->getType() == Ty)
3450 if (Entry->getType()->getAddressSpace() != Ty->getAddressSpace())
3474 llvm::ConstantExpr::getBitCast(GV, Entry->getType());
3549 if (GV->getType()->getElementType() != InitType) {
3622 if (GV->getType()->getElementType() == Ty)
3641 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
3956 if (!GV || GV->getType()->getElementType() != InitType ||
3957 GV->getType()->getAddressSpace() !=
4397 if (!GV || (GV->getType()->getElementType() != Ty))
4494 Entry->getType()));
4567 Entry->getType()));
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp 117 dummy->replaceAllUsesWith(llvm::UndefValue::get(dummy->getType()));
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 2161 CGF.EmitNounwindRuntimeCall(getGuardAbortFn(CGF.CGM, Guard->getType()),
3507 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
3941 assert(Entry->getType() == Aliasee->getType() &&
3941 assert(Entry->getType() == Aliasee->getType() &&
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 2115 cast<llvm::ArrayType>(cast<llvm::PointerType>(GV->getType())
2306 CGM.getModule(), InitFunc->getType(), /*isConstant=*/true,
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp 344 (*m_module), result_global->getType()->getElementType(),
419 Type *ns_str_ty = ns_str->getType();
1245 value_type = PointerType::get(global_variable->getType(), 0);
1247 value_type = global_variable->getType();
tools/llvm-reduce/deltas/ReduceFunctions.cpp 47 F.replaceAllUsesWith(UndefValue::get(F.getType()));
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp 42 GV.replaceAllUsesWith(UndefValue::get(GV.getType()));
tools/polly/lib/CodeGen/PerfMonitor.cpp 47 StructType *ST = StructType::get(Builder.getInt32Ty(), Fn->getType(),
unittests/ExecutionEngine/Orc/IndirectionUtilsTest.cpp 35 auto ImplPtr = orc::createImplPointer(*F->getType(), *MB.getModule(), "", nullptr);
unittests/IR/IRBuilderTest.cpp 794 EXPECT_TRUE(String3->getType()->getPointerAddressSpace() == 2);
unittests/Linker/LinkModulesTest.cpp 200 EXPECT_EQ(M1->getNamedGlobal("t1")->getType(),
201 M1->getNamedGlobal("t2")->getType());