/external/llvm/lib/Transforms/IPO/ |
ConstantMerge.cpp | 47 bool hasKnownAlignment(GlobalVariable *GV) const; 51 unsigned getAlignment(GlobalVariable *GV) const; 73 if (GlobalValue *GV = 75 UsedValues.insert(GV); 90 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const { 91 return TD || GV->getAlignment() != 0; 94 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const { 96 return TD->getPreferredAlignment(GV); 97 return GV->getAlignment(); 127 GlobalVariable *GV = GVI++ [all...] |
StripDeadPrototypes.cpp | 61 GlobalVariable *GV = I++; 63 if (GV->isDeclaration() && GV->use_empty()) 64 GV->eraseFromParent();
|
GlobalOpt.cpp | 78 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 79 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 140 /// an instruction (e.g. a constant expr or GV initializer). 211 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>( 214 if (StoredVal == GV->getInitializer()) { 218 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { 306 /// CleanupConstantGlobalUsers - We just marked GV constant. Loop over all 343 // Do not transform "gepinst (gep constexpr (GV))" here, because forming 344 // "gepconstexpr (gep constexpr (GV))" will cause the two gep's to fold 415 static bool IsUserOfGlobalSafeForSRA(User *U, GlobalValue *GV) { [all...] |
/external/llvm/include/llvm/ |
GVMaterializer.h | 1 //===-- llvm/GVMaterializer.h - Interface for GV materializers --*- C++ -*-===// 36 /// isMaterializable - True if GV can be materialized from whatever backing 38 virtual bool isMaterializable(const GlobalValue *GV) const = 0; 40 /// isDematerializable - True if GV has been materialized and can be 42 virtual bool isDematerializable(const GlobalValue *GV) const = 0; 48 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0) = 0; 51 /// GVMaterializer supports it, release the memory for the GV, and set it up
|
AutoUpgrade.h | 41 bool UpgradeGlobalVariable(GlobalVariable *GV);
|
/external/llvm/lib/Target/MBlaze/ |
MBlazeTargetObjectFile.cpp | 46 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const { 47 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 50 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 56 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, 59 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 72 Type *Ty = GV->getType()->getElementType(); 77 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 83 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind) [all...] |
MBlazeTargetObjectFile.h | 26 bool IsGlobalInSmallSection(const GlobalValue *GV, 30 bool IsGlobalInSmallSection(const GlobalValue *GV, 33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/include/llvm/Target/ |
TargetLoweringObjectFile.h | 60 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, 62 return GV != 0; 71 static SectionKind getKindForGlobal(const GlobalValue *GV, 77 const MCSection *SectionForGlobal(const GlobalValue *GV, 84 const MCSection *SectionForGlobal(const GlobalValue *GV, 87 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM); 94 /// implementation of this method can assume that GV->hasSection() is true. 96 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 102 getSpecialCasedSectionGlobals(const GlobalValue *GV, Mangler *Mang [all...] |
Mangler.h | 57 MCSymbol *getSymbol(const GlobalValue *GV); 63 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
|
/external/llvm/lib/Target/Mips/ |
MipsTargetObjectFile.cpp | 49 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, 51 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) 54 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); 60 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, 69 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); 82 Type *Ty = GV->getType()->getElementType(); 89 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 95 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind) [all...] |
MipsTargetObjectFile.h | 27 bool IsGlobalInSmallSection(const GlobalValue *GV, 29 bool IsGlobalInSmallSection(const GlobalValue *GV, 32 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
|
/external/llvm/include/llvm/CodeGen/ |
TargetLoweringObjectFileImpl.h | 49 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 53 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 60 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 66 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 77 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 81 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 89 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, 95 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 101 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 112 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind [all...] |
/external/llvm/lib/Target/X86/ |
X86TargetObjectFile.h | 25 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 32 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
|
X86TargetObjectFile.cpp | 23 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 30 const MCSymbol *Sym = Mang->getSymbol(GV); 38 getExprForDwarfGlobalReference(GV, Mang, MMI, Encoding, Streamer); 42 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 44 return Mang->getSymbol(GV);
|
X86VZeroUpper.cpp | 74 const GlobalValue *GV = MO.getGlobal(); 75 GlobalValue::LinkageTypes LT = GV->getLinkage(); 76 if (GV->isInternalLinkage(LT) || GV->isPrivateLinkage(LT) || 77 (GV->isExternalLinkage(LT) && !GV->isDeclaration()))
|
X86Subtarget.cpp | 55 ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const { 58 if (GV->hasDLLImportLinkage()) 64 bool isDecl = GV->hasAvailableExternallyLinkage(); 65 if (GV->isDeclaration() && !GV->isMaterializable()) 78 if (GV->hasDefaultVisibility() && 79 (isDecl || GV->isWeakForLinker())) 85 if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility()) 94 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility() [all...] |
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 89 GVMemoryBlock(const GlobalVariable *GV) 90 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} 95 static char *Create(const GlobalVariable *GV, const TargetData& TD) { 96 Type *ElTy = GV->getType()->getElementType(); 100 TD.getPreferredAlignment(GV)) 102 new(RawMemory) GVMemoryBlock(GV); 116 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { 117 return GVMemoryBlock::Create(GV, *getTargetData()); 160 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { 163 DEBUG(dbgs() << "JIT: Map \'" << GV->getName( [all...] |
/external/llvm/lib/Target/SystemZ/ |
SystemZSubtarget.cpp | 38 /// True if accessing the GV requires an extra load. 39 bool SystemZSubtarget::GVRequiresExtraLoad(const GlobalValue* GV, 47 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility())
|
/external/llvm/include/llvm/ExecutionEngine/ |
GenericValue.h | 41 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; }
|
/external/llvm/lib/Target/PowerPC/ |
PPCSubtarget.cpp | 130 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV, 137 bool isDecl = GV->isDeclaration() && !GV->isMaterializable(); 138 if (GV->hasHiddenVisibility() && !isDecl && !GV->hasCommonLinkage()) 140 return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || 141 GV->hasCommonLinkage() || isDecl;
|
/external/llvm/lib/VMCore/ |
IntrinsicInst.cpp | 44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { 45 if (GV->hasInitializer()) 46 if (Value *CO = CastOperand(GV->getInitializer()))
|
/external/llvm/lib/CodeGen/ |
TargetLoweringObjectFileImpl.cpp | 47 TargetLoweringObjectFileELF::getCFIPersonalitySymbol(const GlobalValue *GV, 55 return Mang->getSymbol(GV); 59 Mang->getSymbol(GV)->getName()); 175 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 177 StringRef SectionName = GV->getSection(); 207 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 219 if ((GV->isWeakForLinker() || EmitUniquedSection) && 225 MCSymbol *Sym = Mang->getSymbol(GV); 229 if (GV->isWeakForLinker()) { 249 TM.getTargetData()->getPreferredAlignment(cast<GlobalVariable>(GV)); [all...] |
/external/llvm/lib/Target/ARM/ |
ARMSubtarget.cpp | 129 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol. 131 ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV, 138 bool isDecl = GV->hasAvailableExternallyLinkage(); 139 if (GV->isDeclaration() && !GV->isMaterializable()) 144 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility()) 151 if (!isDecl && !GV->isWeakForLinker()) 156 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference. 161 if (isDecl || GV->hasCommonLinkage() [all...] |
/external/llvm/lib/Target/ |
TargetLoweringObjectFile.cpp | 51 static bool isSuitableForBSS(const GlobalVariable *GV) { 52 const Constant *C = GV->getInitializer(); 59 if (GV->isConstant()) 63 if (!GV->getSection().empty()) 106 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, 108 return Mang->getSymbol(GV); 122 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, 124 assert(!GV->isDeclaration() && !GV->hasAvailableExternallyLinkage() && 130 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); [all...] |
/external/llvm/lib/Target/XCore/ |
XCoreAsmPrinter.cpp | 75 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); 76 virtual void EmitGlobalVariable(const GlobalVariable *GV); 90 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { 91 assert(((GV->hasExternalLinkage() || 92 GV->hasWeakLinkage()) || 93 GV->hasLinkOnceLinkage()) && "Unexpected linkage"); 95 cast<PointerType>(GV->getType())->getElementType())) { 101 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage()) { 109 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { [all...] |