/external/llvm/lib/Transforms/IPO/ |
GlobalOpt.cpp | 80 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 81 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 148 /// an instruction (e.g. a constant expr or GV initializer). 234 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>( 237 if (StoredVal == GV->getInitializer()) { 241 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { 297 /// CleanupConstantGlobalUsers - We just marked GV constant. Loop over all 335 // Do not transform "gepinst (gep constexpr (GV))" here, because forming 336 // "gepconstexpr (gep constexpr (GV))" will cause the two gep's to fold 413 static bool IsUserOfGlobalSafeForSRA(User *U, GlobalValue *GV) { [all...] |
StripSymbols.cpp | 148 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { 149 if (!GV->hasLocalLinkage()) return; // Don't delete non static globals. 150 GV->eraseFromParent(); 202 if (GlobalValue *GV = 204 UsedValues.insert(GV); 325 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) { 326 if (GV->hasLocalLinkage()) 327 RemoveDeadConstant(GV); 353 // llvm.dbg.gv keeps track of debug info for global variables. 354 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) { [all...] |
/external/llvm/lib/Target/ |
TargetMachine.cpp | 78 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const { 79 bool isLocal = GV->hasLocalLinkage(); 80 bool isDeclaration = GV->isDeclaration(); 83 bool isHidden = GV->hasHiddenVisibility();
|
Mangler.cpp | 181 const GlobalValue *GV, 184 if (GV->hasPrivateLinkage() || isImplicitlyPrivate) 186 else if (GV->hasLinkerPrivateLinkage() || GV->hasLinkerPrivateWeakLinkage() || 187 GV->hasLinkerPrivateWeakDefAutoLinkage()) 191 if (GV->hasName()) { 192 getNameWithPrefix(OutName, GV->getName(), PrefixTy); 196 unsigned &ID = AnonGlobalIDs[GV]; 206 if (const Function *F = dyn_cast<Function>(GV)) { 232 MCSymbol *Mangler::getSymbol(const GlobalValue *GV) { [all...] |
/external/llvm/lib/Target/X86/ |
X86Subtarget.cpp | 54 ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const { 57 if (GV->hasDLLImportLinkage()) 63 bool isDecl = GV->hasAvailableExternallyLinkage(); 64 if (GV->isDeclaration() && !GV->isMaterializable()) 77 if (GV->hasDefaultVisibility() && 78 (isDecl || GV->isWeakForLinker())) 84 if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility()) 93 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility() [all...] |
X86InstrBuilder.h | 51 const GlobalValue *GV; 55 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(0), GVOpFlags(0) { 75 if (GV) 76 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); 134 if (AM.GV) 135 MIB.addGlobalAddress(AM.GV, AM.Disp, AM.GVOpFlags);
|
X86JITInfo.h | 43 virtual void *emitGlobalValueIndirectSym(const GlobalValue* GV, void *ptr,
|
X86AsmPrinter.cpp | 90 const GlobalValue *GV = MO.getGlobal(); 94 GVSym = GetSymbolWithGlobalValueBase(GV, "$stub"); 98 GVSym = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr"); 100 GVSym = Mang->getSymbol(GV); 108 MCSymbol *Sym = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr"); 113 StubValueTy(Mang->getSymbol(GV), !GV->hasInternalLinkage()); 115 MCSymbol *Sym = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr"); 120 StubValueTy(Mang->getSymbol(GV), !GV->hasInternalLinkage()) [all...] |
/external/llvm/tools/llvm-nm/ |
llvm-nm.cpp | 237 static char TypeCharForSymbol(GlobalValue &GV) { 238 if (GV.isDeclaration()) return 'U'; 239 if (GV.hasLinkOnceLinkage()) return 'C'; 240 if (GV.hasCommonLinkage()) return 'C'; 241 if (GV.hasWeakLinkage()) return 'W'; 242 if (isa<Function>(GV) && GV.hasInternalLinkage()) return 't'; 243 if (isa<Function>(GV)) return 'T'; 244 if (isa<GlobalVariable>(GV) && GV.hasInternalLinkage()) return 'd' [all...] |
/external/clang/lib/CodeGen/ |
CodeGenModule.cpp | 234 void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, 237 if (GV->hasLocalLinkage()) { 238 GV->setVisibility(llvm::GlobalValue::DefaultVisibility); 244 if (LV.visibilityExplicit() || !GV->hasAvailableExternallyLinkage()) 245 GV->setVisibility(GetLLVMVisibility(LV.visibility())); 250 void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV, 253 setGlobalVisibility(GV, RD); 270 if (GV->getLinkage() != llvm::GlobalVariable::LinkOnceODRLinkage || 271 GV->getVisibility() != llvm::GlobalVariable::DefaultVisibility) 311 GV->setVisibility(llvm::GlobalValue::HiddenVisibility) 694 llvm::GlobalValue *gv = new llvm::GlobalVariable(getModule(), local 707 llvm::GlobalValue *gv = new llvm::GlobalVariable(getModule(), s->getType(), local [all...] |
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 51 Function* globalInitUsesExternalBA(GlobalVariable* GV) { 52 if (!GV->hasInitializer()) 55 Constant *I = GV->getInitializer(); 230 GlobalVariable *GV = M1->getNamedGlobal(GlobalName); 231 if (!GV || GV->isDeclaration() || GV->hasLocalLinkage() || 232 !GV->use_empty()) return; 235 ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer()); 264 GV->eraseFromParent() [all...] |
/external/llvm/lib/VMCore/ |
Globals.cpp | 45 llvm_unreachable("You can't GV->destroyConstant()!"); 67 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) 68 return GV->getNumOperands() == 0; 230 if (const GlobalValue *GV = dyn_cast<GlobalValue>(C)) 231 return GV; 248 const GlobalValue *GV = getAliasedGlobal(); 249 Visited.insert(GV); 252 while (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV)) { 256 GV = GA->getAliasedGlobal(); 258 if (!Visited.insert(GV)) [all...] |
Module.cpp | 272 GlobalVariable *GV = dyn_cast_or_null<GlobalVariable>(getNamedValue(Name)); 273 if (GV == 0) { 283 if (GV->getType() != PointerType::getUnqual(Ty)) 284 return ConstantExpr::getBitCast(GV, PointerType::getUnqual(Ty)); 287 return GV; 396 bool Module::isMaterializable(const GlobalValue *GV) const { 398 return Materializer->isMaterializable(GV); 402 bool Module::isDematerializable(const GlobalValue *GV) const { 404 return Materializer->isDematerializable(GV); 408 bool Module::Materialize(GlobalValue *GV, std::string *ErrInfo) [all...] |
/external/llvm/lib/Analysis/IPA/ |
GlobalsModRef.cpp | 57 unsigned getInfoForGlobal(const GlobalValue *GV) const { 60 GlobalInfo.find(GV); 184 bool AnalyzeIndirectGlobalMemory(GlobalValue *GV); 301 /// Further, all loads out of GV must directly use the memory, not store the 303 /// GV to be owned by GV and can disambiguate other pointers from it. 304 bool GlobalsModRef::AnalyzeIndirectGlobalMemory(GlobalValue *GV) { 311 for (Value::use_iterator I = GV->use_begin(), E = GV->use_end(); I != E; ++I){ 323 if (SI->getOperand(0) == GV) return false [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
ExternalFunctions.cpp | 306 GenericValue GV; 307 GV.IntVal = 0; 308 return GV; 340 GenericValue GV; 341 GV.IntVal = APInt(32, strlen(FmtStr)); 344 case 0: return GV; // Null terminator... 420 GenericValue GV = lle_X_sprintf(FT, NewArgs); 422 return GV; 435 GenericValue GV; 436 GV.IntVal = APInt(32, sscanf(Args[0], Args[1], Args[2], Args[3], Args[4] [all...] |
/external/llvm/include/llvm/CodeGen/ |
MachineRelocation.h | 41 isGV, // The Target.GV field is valid. 59 GlobalValue *GV; // If this is a pointer to a GV or an indirect ref. 83 GlobalValue *GV, intptr_t cst = 0, 95 Result.Target.GV = GV; 103 GlobalValue *GV, intptr_t cst = 0, 115 Result.Target.GV = GV; 283 return Target.GV; [all...] |
AsmPrinter.h | 211 virtual void EmitGlobalVariable(const GlobalVariable *GV); 216 bool EmitSpecialLLVMGlobal(const GlobalVariable *GV); 224 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const; 297 MCSymbol *GetSymbolWithGlobalValueBase(const GlobalValue *GV, 383 void EmitReference(const GlobalValue *GV, unsigned Encoding) const;
|
/external/llvm/lib/Transforms/Utils/ |
CloneModule.cpp | 51 GlobalVariable *GV = new GlobalVariable(*New, 58 GV->copyAttributesFrom(I); 59 VMap[I] = GV; 86 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); 88 GV->setInitializer(MapValue(I->getInitializer(), VMap));
|
/external/llvm/lib/CodeGen/ |
Analysis.cpp | 112 GlobalVariable *GV = dyn_cast<GlobalVariable>(V); 114 if (GV && GV->getName() == "llvm.eh.catch.all.value") { 115 assert(GV->hasInitializer() && 117 Value *Init = GV->getInitializer(); 118 GV = dyn_cast<GlobalVariable>(Init); 119 if (!GV) V = cast<ConstantPointerNull>(Init); 122 assert((GV || isa<ConstantPointerNull>(V)) && 124 return GV;
|
/external/llvm/tools/lto/ |
LTOCodeGenerator.cpp | 249 applyRestriction(GlobalValue &GV, 254 mangler.getNameWithPrefix(Buffer, &GV, false); 256 if (GV.isDeclaration()) 259 mustPreserveList.push_back(GV.getName().data()); 261 asmUsed.insert(&GV); 272 if (GlobalValue *GV = 274 UsedValues.insert(GV); 311 GlobalValue *GV = *i; 312 Constant *c = ConstantExpr::getBitCast(GV, i8PTy);
|
/external/llvm/include/llvm/ |
GlobalAlias.h | 60 void setAliasee(Constant *GV);
|
/external/llvm/include/llvm/Target/ |
TargetJITInfo.h | 47 virtual void *emitGlobalValueIndirectSym(const GlobalValue* GV, void *ptr,
|
/external/llvm/lib/ExecutionEngine/JIT/ |
JIT.cpp | 741 void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) { 744 void *Ptr = getPointerToGlobalIfAvailable(GV); 748 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) { 750 if (GV->getName() == "__dso_handle") 753 Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(GV->getName()); 756 +GV->getName()); 758 addGlobalMapping(GV, Ptr); 762 Ptr = getMemoryForGV(GV); 763 addGlobalMapping(GV, Ptr) [all...] |
/external/llvm/include/llvm/ExecutionEngine/ |
ExecutionEngine.h | 129 virtual char *getMemoryForGV(const GlobalVariable *GV); 278 void addGlobalMapping(const GlobalValue *GV, void *Addr); 288 /// updateGlobalMapping - Replace an existing mapping for GV with a new 292 void *updateGlobalMapping(const GlobalValue *GV, void *Addr); 297 void *getPointerToGlobalIfAvailable(const GlobalValue *GV); 301 void *getPointerToGlobal(const GlobalValue *GV); 356 virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) { 357 return getPointerToGlobal((GlobalValue*)GV); 459 void EmitGlobalVariable(const GlobalVariable *GV);
|
/external/llvm/lib/Target/PowerPC/ |
PPCAsmPrinter.cpp | 198 const GlobalValue *GV = MO.getGlobal(); 203 (GV->isDeclaration() || GV->isWeakForLinker())) { 204 if (!GV->hasHiddenVisibility()) { 205 SymToPrint = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr"); 211 StubValueTy(Mang->getSymbol(GV), !GV->hasInternalLinkage()); 212 } else if (GV->isDeclaration() || GV->hasCommonLinkage() || 213 GV->hasAvailableExternallyLinkage()) [all...] |