/external/llvm/include/llvm/IR/ |
D | GlobalVariable.h | 35 class GlobalVariable : public GlobalValue, public ilist_node<GlobalVariable> { 36 friend class SymbolTableListTraits<GlobalVariable, Module>; 38 void operator=(const GlobalVariable &) LLVM_DELETED_FUNCTION; 39 GlobalVariable(const GlobalVariable &) LLVM_DELETED_FUNCTION; 68 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage, 74 GlobalVariable(Module &M, Type *Ty, bool isConstant, 76 const Twine &Name = "", GlobalVariable *InsertBefore = 0, 80 ~GlobalVariable() { in ~GlobalVariable() 202 struct OperandTraits<GlobalVariable> : 203 public OptionalOperandTraits<GlobalVariable> { [all …]
|
D | Module.h | 53 template<> struct ilist_traits<GlobalVariable> 54 : public SymbolTableListTraits<GlobalVariable, Module> { 56 GlobalVariable *createSentinel() const { 57 return static_cast<GlobalVariable*>(&Sentinel); 59 static void destroySentinel(GlobalVariable*) {} 61 GlobalVariable *provideInitialHead() const { return createSentinel(); } 62 GlobalVariable *ensureHead(GlobalVariable*) const { return createSentinel(); } 63 static void noteHead(GlobalVariable*, GlobalVariable*) {} 65 mutable ilist_node<GlobalVariable> Sentinel; 117 typedef iplist<GlobalVariable> GlobalListType; [all …]
|
/external/llvm/lib/IR/ |
D | Globals.cpp | 68 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration() 84 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable 91 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable() 104 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable 107 GlobalVariable *Before, ThreadLocalMode TLMode, in GlobalVariable() 112 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable() 130 void GlobalVariable::setParent(Module *parent) { in setParent() 138 void GlobalVariable::removeFromParent() { in removeFromParent() 142 void GlobalVariable::eraseFromParent() { in eraseFromParent() 146 void GlobalVariable::replaceUsesOfWithOnConstant(Value *From, Value *To, in replaceUsesOfWithOnConstant() [all …]
|
D | Module.cpp | 38 template class llvm::SymbolTableListTraits<GlobalVariable, Module>; 145 Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, Name); in getOrInsertFunction() 236 GlobalVariable *Module::getGlobalVariable(StringRef Name, bool AllowLocal) { in getGlobalVariable() 237 if (GlobalVariable *Result = in getGlobalVariable() 238 dyn_cast_or_null<GlobalVariable>(getNamedValue(Name))) in getGlobalVariable() 252 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); in getOrInsertGlobal() 255 GlobalVariable *New = in getOrInsertGlobal() 256 new GlobalVariable(*this, Ty, false, GlobalVariable::ExternalLinkage, in getOrInsertGlobal()
|
D | IntrinsicInst.cpp | 44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { in StripCast() 49 return dyn_cast<GlobalVariable>(C); in StripCast()
|
/external/llvm/lib/Transforms/IPO/ |
D | ConstantMerge.cpp | 48 bool hasKnownAlignment(GlobalVariable *GV) const; 52 unsigned getAlignment(GlobalVariable *GV) const; 67 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues() 80 static bool IsBetterCannonical(const GlobalVariable &A, in IsBetterCannonical() 81 const GlobalVariable &B) { in IsBetterCannonical() 91 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const { in hasKnownAlignment() 95 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const { in getAlignment() 112 DenseMap<PointerIntPair<Constant*, 1, bool>, GlobalVariable*> CMap; in runOnModule() 115 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; in runOnModule() 128 GlobalVariable *GV = GVI++; in runOnModule() [all …]
|
D | GlobalOpt.cpp | 76 GlobalVariable *FindGlobalCtors(Module &M); 80 bool OptimizeGlobalCtorsList(GlobalVariable *&GCL); 81 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 82 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 232 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>( in AnalyzeGlobal() 306 static bool isLeakCheckerRoot(GlobalVariable *GV) { in isLeakCheckerRoot() 384 static bool CleanupPointerRootUsers(GlobalVariable *GV, in CleanupPointerRootUsers() 423 GlobalVariable *MemSrc = dyn_cast<GlobalVariable>(MTI->getSource()); in CleanupPointerRootUsers() 664 static GlobalVariable *SRAGlobal(GlobalVariable *GV, const DataLayout &TD) { in SRAGlobal() 673 std::vector<GlobalVariable*> NewGlobals; in SRAGlobal() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGVTables.h | 38 llvm::DenseMap<const CXXRecordDecl *, llvm::GlobalVariable *> VTables; 95 llvm::GlobalVariable *GetAddrOfVTable(const CXXRecordDecl *RD); 98 void EmitVTableDefinition(llvm::GlobalVariable *VTable, 99 llvm::GlobalVariable::LinkageTypes Linkage, 104 llvm::GlobalVariable * 107 llvm::GlobalVariable::LinkageTypes Linkage, 112 llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD); 115 void EmitVTTDefinition(llvm::GlobalVariable *VTT, 116 llvm::GlobalVariable::LinkageTypes Linkage,
|
D | MicrosoftVBTables.h | 31 llvm::GlobalVariable *GV) in VBTableInfo() 43 llvm::GlobalVariable *GV; 47 llvm::GlobalVariable::LinkageTypes Linkage) const; 102 llvm::GlobalVariable *getAddrOfVBTable(const CXXRecordDecl *ReusingBase,
|
D | CGVTables.cpp | 121 if ((Fn->getLinkage() != llvm::GlobalVariable::LinkOnceODRLinkage && in setThunkVisibility() 122 Fn->getLinkage() != llvm::GlobalVariable::WeakODRLinkage) || in setThunkVisibility() 123 Fn->getVisibility() != llvm::GlobalVariable::DefaultVisibility) in setThunkVisibility() 635 llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTable(const CXXRecordDecl *RD) { in GetAddrOfVTable() 636 llvm::GlobalVariable *&VTable = VTables[RD]; in GetAddrOfVTable() 661 CodeGenVTables::EmitVTableDefinition(llvm::GlobalVariable *VTable, in EmitVTableDefinition() 662 llvm::GlobalVariable::LinkageTypes Linkage, in EmitVTableDefinition() 682 llvm::GlobalVariable * 686 llvm::GlobalVariable::LinkageTypes Linkage, in GenerateConstructionVTable() 713 if (Linkage == llvm::GlobalVariable::AvailableExternallyLinkage) in GenerateConstructionVTable() [all …]
|
D | CodeGenModule.cpp | 310 static llvm::GlobalVariable::ThreadLocalMode GetLLVMTLSModel(StringRef S) { in GetLLVMTLSModel() 311 return llvm::StringSwitch<llvm::GlobalVariable::ThreadLocalMode>(S) in GetLLVMTLSModel() 312 .Case("global-dynamic", llvm::GlobalVariable::GeneralDynamicTLSModel) in GetLLVMTLSModel() 313 .Case("local-dynamic", llvm::GlobalVariable::LocalDynamicTLSModel) in GetLLVMTLSModel() 314 .Case("initial-exec", llvm::GlobalVariable::InitialExecTLSModel) in GetLLVMTLSModel() 315 .Case("local-exec", llvm::GlobalVariable::LocalExecTLSModel); in GetLLVMTLSModel() 318 static llvm::GlobalVariable::ThreadLocalMode GetLLVMTLSModel( in GetLLVMTLSModel() 322 return llvm::GlobalVariable::GeneralDynamicTLSModel; in GetLLVMTLSModel() 324 return llvm::GlobalVariable::LocalDynamicTLSModel; in GetLLVMTLSModel() 326 return llvm::GlobalVariable::InitialExecTLSModel; in GetLLVMTLSModel() [all …]
|
D | CGVTT.cpp | 24 llvm::GlobalVariable::LinkageTypes Linkage, in GetAddrOfVTTVTable() 41 CodeGenVTables::EmitVTTDefinition(llvm::GlobalVariable *VTT, in EmitVTTDefinition() 42 llvm::GlobalVariable::LinkageTypes Linkage, in EmitVTTDefinition() 99 llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTT(const CXXRecordDecl *RD) { in GetAddrOfVTT() 116 llvm::GlobalVariable *GV = in GetAddrOfVTT()
|
/external/llvm/lib/Transforms/Scalar/ |
D | GlobalMerge.cpp | 83 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals, 89 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable() 101 SmallPtrSet<const GlobalVariable *, 16> MustKeepGlobalVariables; 128 bool operator()(const GlobalVariable *GV1, const GlobalVariable *GV2) { in operator ()() 143 bool GlobalMerge::doMerge(SmallVectorImpl<GlobalVariable*> &Globals, in doMerge() 175 GlobalVariable *MergedGV = new GlobalVariable(M, MergedTy, isConst, in doMerge() 178 0, GlobalVariable::NotThreadLocal, in doMerge() 198 const GlobalVariable *GV = M.getGlobalVariable("llvm.used"); in collectUsedGlobalVariables() 205 if (const GlobalVariable *G = in collectUsedGlobalVariables() 206 dyn_cast<GlobalVariable>(InitList->getOperand(i)->stripPointerCasts())) in collectUsedGlobalVariables() [all …]
|
/external/llvm/unittests/ExecutionEngine/ |
D | ExecutionEngineTest.cpp | 34 GlobalVariable *NewExtGlobal(Type *T, const Twine &Name) { in NewExtGlobal() 35 return new GlobalVariable(*M, T, false, // Not constant. in NewExtGlobal() 45 GlobalVariable *G1 = in TEST_F() 58 GlobalVariable *G2 = in TEST_F() 71 GlobalVariable *G1 = in TEST_F() 82 GlobalVariable *G2 = in TEST_F() 99 GlobalVariable *G1 = in TEST_F() 110 GlobalVariable *G2 = in TEST_F() 119 GlobalVariable *G1 = in TEST_F()
|
/external/llvm/lib/Target/ |
D | TargetMachine.cpp | 106 static TLSModel::Model getSelectedTLSModel(const GlobalVariable *Var) { in getSelectedTLSModel() 108 case GlobalVariable::NotThreadLocal: in getSelectedTLSModel() 111 case GlobalVariable::GeneralDynamicTLSModel: in getSelectedTLSModel() 113 case GlobalVariable::LocalDynamicTLSModel: in getSelectedTLSModel() 115 case GlobalVariable::InitialExecTLSModel: in getSelectedTLSModel() 117 case GlobalVariable::LocalExecTLSModel: in getSelectedTLSModel() 128 const GlobalVariable *Var = cast<GlobalVariable>(GV); in getTLSModel()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreLowerThreadLocal.cpp | 46 bool lowerGlobal(GlobalVariable *GV); 74 static bool hasNonInstructionUse(GlobalVariable *GV) { in hasNonInstructionUse() 88 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { in lowerGlobal() 103 GlobalVariable *NewGV = in lowerGlobal() 104 new GlobalVariable(*M, NewType, GV->isConstant(), GV->getLinkage(), in lowerGlobal() 105 NewInitializer, "", 0, GlobalVariable::NotThreadLocal, in lowerGlobal() 134 SmallVector<GlobalVariable *, 16> ThreadLocalGlobals; in runOnModule() 137 GlobalVariable *GV = GVI; in runOnModule()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXGenericToNVVM.cpp | 50 Value *getOrInsertCVTA(Module *M, Function *F, GlobalVariable *GV, 62 typedef ValueMap<GlobalVariable *, GlobalVariable *> GVMapTy; 86 GlobalVariable *GV = I++; in runOnModule() 90 GlobalVariable *NewGV = new GlobalVariable( in runOnModule() 142 GlobalVariable *GV = I->first; in runOnModule() 143 GlobalVariable *NewGV = I->second; in runOnModule() 165 GlobalVariable *GV, in getOrInsertCVTA() 217 if (isa<GlobalVariable>(C)) { in remapConstant() 226 GVMapTy::iterator I = GVMap.find(cast<GlobalVariable>(C)); in remapConstant() 406 if (isa<GlobalVariable>(Operand)) { in remapMDNode() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | ModuleUtils.cpp | 36 if (GlobalVariable * GVCtor = M.getNamedGlobal(Array)) { in appendToGlobalArray() 55 (void)new GlobalVariable(M, NewInit->getType(), false, in appendToGlobalArray() 67 GlobalVariable * 71 GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables()
|
D | CloneModule.cpp | 47 GlobalVariable *GV = new GlobalVariable(*New, in CloneModule() 51 (GlobalVariable*) 0, in CloneModule() 82 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); in CloneModule()
|
/external/llvm/unittests/Transforms/Utils/ |
D | SpecialCaseList.cpp | 30 GlobalVariable *makeGlobal(StringRef Name, StringRef StructName, Module &M) { in makeGlobal() 33 return new GlobalVariable( in makeGlobal() 48 GlobalVariable *GV = makeGlobal("bar", "t", M); in TEST_F() 96 GlobalVariable *Foo = makeGlobal("foo", "t1", M); in TEST_F() 97 GlobalVariable *Bar = makeGlobal("bar", "t2", M); in TEST_F() 145 GlobalVariable *GV = makeGlobal("bartender", "t", M); in TEST_F()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | GCOVProfiling.cpp | 112 GlobalVariable *getEdgeStateValue(); 116 GlobalVariable *buildEdgeLookupTable(Function *F, 117 GlobalVariable *Counter, 123 Function *insertCounterWriteout(ArrayRef<std::pair<GlobalVariable*, 125 Function *insertFlush(ArrayRef<std::pair<GlobalVariable*, MDNode*> >); 486 SmallVector<std::pair<GlobalVariable *, MDNode *>, 8> CountersBySP; in emitProfileArcs() 507 GlobalVariable *Counters = in emitProfileArcs() 508 new GlobalVariable(*M, CounterTy, false, in emitProfileArcs() 551 GlobalVariable *EdgeTable = in emitProfileArcs() 554 GlobalVariable *EdgeState = getEdgeStateValue(); in emitProfileArcs() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SpecialCaseList.h | 52 class GlobalVariable; variable 70 bool isIn(const GlobalVariable &G, 85 bool findCategory(const GlobalVariable &G, StringRef &Category) const;
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineModuleInfo.h | 52 class GlobalVariable; variable 134 std::vector<const GlobalVariable *> TypeInfos; 311 ArrayRef<const GlobalVariable *> TyInfo); 316 ArrayRef<const GlobalVariable *> TyInfo); 324 unsigned getTypeIDFor(const GlobalVariable *TI); 385 const std::vector<const GlobalVariable *> &getTypeInfos() const { in getTypeInfos()
|
/external/llvm/lib/Analysis/ |
D | Loads.cpp | 71 } else if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(Base)) { in isSafeToLoadUnconditionally() 188 if ((isa<AllocaInst>(Ptr) || isa<GlobalVariable>(Ptr)) && in FindAvailableLoadedValue() 190 isa<GlobalVariable>(SI->getOperand(1)))) in FindAvailableLoadedValue()
|
/external/llvm/include/llvm/ |
D | AutoUpgrade.h | 19 class GlobalVariable; variable 41 bool UpgradeGlobalVariable(GlobalVariable *GV);
|