Searched defs:GV (Results 1 - 25 of 151) sorted by relevance

1234567

/external/llvm/lib/Transforms/IPO/
H A DStripDeadPrototypes.cpp62 GlobalVariable *GV = I++; local
64 if (GV->isDeclaration() && GV->use_empty())
65 GV->eraseFromParent();
H A DExtractGV.cpp24 /// Make sure GV is visible from both modules. Delete is true if it is
26 /// This also makes sure GV cannot be dropped so that references from
28 static void makeVisible(GlobalValue &GV, bool Delete) { argument
29 bool Local = GV.hasLocalLinkage();
31 GV.setLinkage(GlobalValue::ExternalLinkage);
33 GV.setVisibility(GlobalValue::HiddenVisibility);
37 if (!GV.hasLinkOnceLinkage()) {
38 assert(!GV.isDiscardableIfUnused());
42 // Map linkonce* to weak* so that llvm doesn't drop this GV.
43 switch(GV
[all...]
H A DInternalize.cpp108 static bool shouldInternalize(const GlobalValue &GV, argument
111 if (GV.isDeclaration())
115 if (GV.hasAvailableExternallyLinkage())
119 if (GV.hasDLLExportStorageClass())
123 if (GV.hasLocalLinkage())
127 if (ExternalNames.count(GV.getName()))
/external/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp44 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
49 GV, Encoding, Mang, TM, MMI, Streamer);
53 return MCSymbolRefExpr::Create(TM.getSymbol(GV, Mang),
43 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
/external/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp53 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument
58 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
61 // Otherwise, Check if GV should be in sdata/sbss, when normally it would end
62 // up in getKindForGlobal(GV, TM).
63 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
69 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument
72 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
77 Type *Ty = GV
85 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
[all...]
/external/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp26 const GlobalValue *GV, SectionKind Kind, Mangler &Mang,
43 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
51 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind,
25 SelectSectionForGlobal( const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
/external/llvm/lib/Target/Sparc/
H A DSparcTargetObjectFile.cpp19 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
26 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", Mang, TM);
32 MCSymbol *Sym = TM.getSymbol(GV, Mang);
33 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
42 GV, Encoding, Mang, TM, MMI, Streamer);
18 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
/external/llvm/lib/Target/SystemZ/
H A DSystemZConstantPoolValue.h34 const GlobalValue *GV; member in class:llvm::SystemZConstantPoolValue
38 SystemZConstantPoolValue(const GlobalValue *GV,
43 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
53 const GlobalValue *getGlobalValue() const { return GV; }
H A DSystemZSubtarget.cpp47 // Return true if GV binds locally under reloc model RM.
48 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { argument
53 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility();
56 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, argument
61 if (GV->getAlignment() == 1)
66 return bindsLocally(GV, RM);
H A DSystemZConstantPoolValue.cpp21 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {}
24 SystemZConstantPoolValue::Create(const GlobalValue *GV, argument
26 return new SystemZConstantPoolValue(GV, Modifier);
53 if (ZCPV->GV == GV && ZCPV->Modifier == Modifier)
61 ID.AddPointer(GV);
66 O << GV << "@" << int(Modifier);
/external/llvm/lib/Transforms/Utils/
H A DCloneModule.cpp48 GlobalVariable *GV = new GlobalVariable(*New, local
55 GV->copyAttributesFrom(I);
56 VMap[I] = GV;
85 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); local
87 GV->setInitializer(MapValue(I->getInitializer(), VMap));
/external/llvm/include/llvm/ExecutionEngine/
H A DGenericValue.h50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument
H A DJITSymbolFlags.h65 static JITSymbolFlags flagsFromGlobalValue(const GlobalValue &GV) { argument
67 if (GV.hasWeakLinkage())
69 if (!GV.hasLocalLinkage() && !GV.hasHiddenVisibility())
/external/llvm/lib/Target/AArch64/
H A DAArch64MCInstLower.cpp56 llvm_unreachable("Unexpected target flags with MO_GOT on GV operand");
64 llvm_unreachable("Unexpected target flags with MO_TLS on GV operand");
88 const GlobalValue *GV = MO.getGlobal(); local
89 Model = Printer.TM.getTLSModel(GV);
H A DAArch64TargetObjectFile.cpp33 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
41 const MCSymbol *Sym = TM.getSymbol(GV, Mang);
51 GV, Encoding, Mang, TM, MMI, Streamer);
55 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
57 return TM.getSymbol(GV, Mang);
32 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
54 getCFIPersonalitySymbol( const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const argument
H A DAArch64Subtarget.cpp60 AArch64Subtarget::ClassifyGlobalReference(const GlobalValue *GV, argument
62 bool isDecl = GV->isDeclarationForLinker();
72 GV->isWeakForLinker() && isDecl) {
88 if (TM.getRelocationModel() != Reloc::Static && GV->hasDefaultVisibility()) {
90 return (isDecl || GV->isWeakForLinker()) ? AArch64II::MO_GOT
94 return GV->hasLocalLinkage() ? AArch64II::MO_NO_FLAG : AArch64II::MO_GOT;
/external/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp63 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const { argument
67 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
68 return IsGlobalInSmallSectionImpl(GV, TM);
70 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
76 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument
78 return (IsGlobalInSmallSectionImpl(GV, TM) &&
86 IsGlobalInSmallSectionImpl(const GlobalValue *GV, argument
96 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
114 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
[all...]
/external/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.cpp99 XCoreTargetObjectFile::getExplicitSectionGlobal(const GlobalValue *GV, argument
102 StringRef SectionName = GV->getSection();
112 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, argument
115 bool UseCPRel = GV->isLocalLinkage(GV->getLinkage());
124 Type *ObjType = GV->getType()->getPointerElementType();
/external/clang/lib/CodeGen/
H A DSanitizerMetadata.cpp24 void SanitizerMetadata::reportGlobalToASan(llvm::GlobalVariable *GV, argument
30 IsDynInit &= !CGM.isInSanitizerBlacklist(GV, Loc, Ty, "init");
31 IsBlacklisted |= CGM.isInSanitizerBlacklist(GV, Loc, Ty);
45 llvm::ConstantAsMetadata::get(GV), LocDescr, GlobalName,
57 void SanitizerMetadata::reportGlobalToASan(llvm::GlobalVariable *GV, argument
64 reportGlobalToASan(GV, D.getLocation(), OS.str(), D.getType(), IsDynInit);
67 void SanitizerMetadata::disableSanitizerForGlobal(llvm::GlobalVariable *GV) { argument
71 reportGlobalToASan(GV, SourceLocation(), "", QualType(), false, true);
/external/llvm/examples/Fibonacci/
H A Dfibonacci.cpp131 GenericValue GV = EE->runFunction(FibF, Args); local
134 outs() << "Result: " << GV.IntVal << "\n";
/external/llvm/lib/CodeGen/AsmPrinter/
H A DARMException.cpp112 const GlobalValue *GV = *I; local
115 Asm->EmitTTypeReference(GV, TTypeEncoding);
/external/llvm/lib/ExecutionEngine/Orc/
H A DCloneSubModule.cpp43 GlobalVariable *GV = new GlobalVariable( local
47 GV->copyAttributesFrom(I);
48 VMap[I] = GV;
76 GlobalVariable &GV = *cast<GlobalVariable>(VMap[I]); local
77 HandleGlobalVariable(GV, *I, VMap);
H A DExecutionUtils.cpp20 CtorDtorIterator::CtorDtorIterator(const GlobalVariable *GV, bool End) argument
22 GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr),
/external/llvm/lib/IR/
H A DMangler.cpp93 void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV, argument
96 if (GV->hasPrivateLinkage()) {
103 if (!GV->hasName()) {
106 unsigned &ID = AnonGlobalIDs[GV];
115 StringRef Name = GV->getName();
120 const Function *MSFunc = dyn_cast<Function>(GV);
154 const GlobalValue *GV,
157 getNameWithPrefix(OS, GV, CannotUsePrivateLabel);
153 getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel) const argument
/external/llvm/lib/Target/R600/
H A DAMDGPUMCInstLower.cpp71 const GlobalValue *GV = MO.getGlobal(); local
72 MCSymbol *Sym = Ctx.GetOrCreateSymbol(StringRef(GV->getName()));

Completed in 420 milliseconds

1234567