HomeSort by relevance Sort by last modified time
    Searched refs:GV (Results 1 - 25 of 227) sorted by null

1 2 3 4 5 6 7 8 910

  /external/llvm/lib/Transforms/IPO/
ConstantMerge.cpp 49 bool hasKnownAlignment(GlobalVariable *GV) const;
53 unsigned getAlignment(GlobalVariable *GV) const;
75 GlobalValue *GV = cast<GlobalValue>(Operand);
76 UsedValues.insert(GV);
92 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const {
93 return DL || GV->getAlignment() != 0;
96 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const {
97 unsigned Align = GV->getAlignment();
101 return DL->getPreferredAlignment(GV);
133 GlobalVariable *GV = GVI++
    [all...]
StripDeadPrototypes.cpp 62 GlobalVariable *GV = I++;
64 if (GV->isDeclaration() && GV->use_empty())
65 GV->eraseFromParent();
ExtractGV.cpp 24 /// 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) {
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.getLinkage())
    [all...]
  /external/llvm/include/llvm/IR/
GVMaterializer.h 1 //===- GVMaterializer.h - Interface for GV materializers --------*- C++ -*-===//
35 /// True if GV can be materialized from whatever backing store this
37 virtual bool isMaterializable(const GlobalValue *GV) const = 0;
39 /// True if GV has been materialized and can be dematerialized back to
41 virtual bool isDematerializable(const GlobalValue *GV) const = 0;
45 virtual std::error_code Materialize(GlobalValue *GV) = 0;
48 /// it, release the memory for the GV, and set it up to be materialized
  /external/llvm/lib/Target/Hexagon/
HexagonTargetObjectFile.cpp 57 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV,
62 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
65 // Otherwise, Check if GV should be in sdata/sbss, when normally it would end
66 // up in getKindForGlobal(GV, TM).
67 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
73 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM,
76 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
81 Type *Ty = GV->getType()->getElementType()
    [all...]
HexagonTargetObjectFile.h 26 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection *SelectSectionForGlobal(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,
70 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
83 Type *Ty = GV->getType()->getElementType();
90 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
96 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/lib/Target/SystemZ/
SystemZConstantPoolValue.h 30 const GlobalValue *GV;
34 SystemZConstantPoolValue(const GlobalValue *GV,
39 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
49 const GlobalValue *getGlobalValue() const { return GV; }
SystemZConstantPoolValue.cpp 19 SystemZConstantPoolValue(const GlobalValue *gv,
21 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {}
24 SystemZConstantPoolValue::Create(const GlobalValue *GV,
26 return new SystemZConstantPoolValue(GV, Modifier);
48 if (ZCPV->GV == GV && ZCPV->Modifier == Modifier)
56 ID.AddPointer(GV);
61 O << GV << "@" << int(Modifier)
    [all...]
SystemZSubtarget.cpp 55 // Return true if GV binds locally under reloc model RM.
56 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) {
61 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility();
64 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV,
69 if (GV->getAlignment() == 1)
74 return bindsLocally(GV, RM);
  /external/llvm/lib/Target/Sparc/
SparcTargetObjectFile.cpp 19 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);
  /external/llvm/lib/Target/XCore/
XCoreLowerThreadLocal.cpp 49 bool lowerGlobal(GlobalVariable *GV);
160 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) {
162 for (User *U : GV->users())
179 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) {
180 Module *M = GV->getParent();
182 if (!GV->isThreadLocal())
186 if (!rewriteNonInstructionUses(GV, this) ||
187 !GV->getType()->isSized() || isZeroLengthArray(GV->getType()))
191 ArrayType *NewType = createLoweredType(GV->getType()->getElementType())
    [all...]
  /external/llvm/lib/Target/NVPTX/
NVPTXAssignValidGlobalNames.cpp 53 for (GlobalVariable &GV : M.globals()) {
55 if (GV.hasLocalLinkage()) {
60 GV.setName(cleanUpName(GV.getName()));
  /external/llvm/include/llvm/Target/
TargetLoweringObjectFile.h 77 static SectionKind getKindForGlobal(const GlobalValue *GV,
83 const MCSection *SectionForGlobal(const GlobalValue *GV,
90 const MCSection *SectionForGlobal(const GlobalValue *GV,
93 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM);
98 /// assume that GV->hasSection() is true.
100 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
104 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV,
113 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
119 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV,
    [all...]
  /external/llvm/lib/Target/AArch64/
AArch64Subtarget.cpp 65 AArch64Subtarget::ClassifyGlobalReference(const GlobalValue *GV,
71 bool isDecl = GV->hasAvailableExternallyLinkage();
72 if (GV->isDeclaration() && !GV->isMaterializable())
83 if (TM.getCodeModel() == CodeModel::Small && GV->isWeakForLinker() && isDecl)
94 if (TM.getRelocationModel() != Reloc::Static && GV->hasDefaultVisibility()) {
96 return (isDecl || GV->isWeakForLinker()) ? AArch64II::MO_GOT
100 return GV->hasLocalLinkage() ? AArch64II::MO_NO_FLAG : AArch64II::MO_GOT;
AArch64TargetObjectFile.h 27 const MCExpr *getTTypeGlobalReference(const GlobalValue *GV,
33 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
AArch64TargetObjectFile.cpp 27 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
35 const MCSymbol *Sym = TM.getSymbol(GV, Mang);
45 GV, Encoding, Mang, TM, MMI, Streamer);
49 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
51 return TM.getSymbol(GV, Mang);
  /external/llvm/lib/Target/
TargetMachine.cpp 91 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) {
92 switch (GV->getThreadLocalMode()) {
108 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const {
109 bool isLocal = GV->hasLocalLinkage();
110 bool isDeclaration = GV->isDeclaration();
115 bool isHidden = GV->hasHiddenVisibility();
131 TLSModel::Model SelectedModel = getSelectedTLSModel(GV);
176 const GlobalValue *GV, Mangler &Mang,
178 if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) {
179 // Simple case: If GV is not private, it is not important to find out i
    [all...]
TargetLoweringObjectFile.cpp 53 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) {
54 const Constant *C = GV->getInitializer();
61 if (GV->isConstant())
65 if (GV->hasSection())
104 const GlobalValue *GV, StringRef Suffix, Mangler &Mang,
110 TM.getNameWithPrefix(NameStr, GV, Mang);
116 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
118 return TM.getSymbol(GV, Mang);
132 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
134 assert(!GV->isDeclaration() && !GV->hasAvailableExternallyLinkage() &
    [all...]
  /external/llvm/lib/ExecutionEngine/
ExecutionEngine.cpp 94 GVMemoryBlock(const GlobalVariable *GV)
95 : CallbackVH(const_cast<GlobalVariable*>(GV)) {}
100 static char *Create(const GlobalVariable *GV, const DataLayout& TD) {
101 Type *ElTy = GV->getType()->getElementType();
105 TD.getPreferredAlignment(GV))
107 new(RawMemory) GVMemoryBlock(GV);
121 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
122 return GVMemoryBlock::Create(GV, *getDataLayout());
168 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
171 DEBUG(dbgs() << "JIT: Map \'" << GV->getName(
    [all...]
  /external/llvm/include/llvm/CodeGen/
TargetLoweringObjectFileImpl.h 48 const MCSection *getExplicitSectionGlobal(const GlobalValue *GV,
52 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
59 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
65 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
94 SelectSectionForGlobal(const GlobalValue *GV,
99 getExplicitSectionGlobal(const GlobalValue *GV,
107 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
113 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang,
125 getExplicitSectionGlobal(const GlobalValue *GV,
130 SelectSectionForGlobal(const GlobalValue *GV,
    [all...]
  /external/llvm/lib/Object/
IRObjectFile.cpp 132 const GlobalValue *GV = &*I;
133 return reinterpret_cast<uintptr_t>(GV) | 2;
139 const GlobalValue *GV = &*I;
140 return reinterpret_cast<uintptr_t>(GV) | 1;
146 const GlobalValue *GV = &*I;
147 return reinterpret_cast<uintptr_t>(GV) | 0;
158 const GlobalValue *GV = getGV(Symb);
163 Module::const_iterator Iter(static_cast<const Function*>(GV));
169 Module::const_global_iterator Iter(static_cast<const GlobalVariable*>(GV));
175 Module::const_alias_iterator Iter(static_cast<const GlobalAlias*>(GV));
    [all...]
  /external/llvm/lib/IR/
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/Target/ARM/
ARMTargetObjectFile.cpp 46 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
51 GV, Encoding, Mang, TM, MMI, Streamer);
55 return MCSymbolRefExpr::Create(TM.getSymbol(GV, Mang),

Completed in 2988 milliseconds

1 2 3 4 5 6 7 8 910