/external/llvm/lib/Target/MSP430/ |
MSP430ISelLowering.cpp | 783 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal(); 787 SDValue Result = DAG.getTargetGlobalAddress(GV, SDLoc(Op), [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
GCOVProfiling.cpp | 814 GlobalVariable *GV = M->getGlobalVariable("__llvm_gcov_global_state_pred"); 815 if (!GV) { 816 GV = new GlobalVariable(*M, Type::getInt32Ty(*Ctx), false, 821 GV->setUnnamedAddr(true); 823 return GV; 869 GlobalVariable *GV = CountersBySP[j].first; 871 cast<ArrayType>(GV->getType()->getElementType())->getNumElements(); 874 Builder.CreateConstGEP2_64(GV, 0, 0)); [all...] |
/external/llvm/lib/Transforms/Scalar/ |
LoopIdiomRecognize.cpp | [all...] |
SCCP.cpp | 227 void TrackValueOfGlobalVariable(GlobalVariable *GV) { 229 if (GV->getType()->getElementType()->isSingleValueType()) { 230 LatticeVal &IV = TrackedGlobals[GV]; 231 if (!isa<UndefValue>(GV->getInitializer())) 232 IV.markConstant(GV->getInitializer()); [all...] |
/external/clang/lib/CodeGen/ |
CGDecl.cpp | 192 llvm::GlobalVariable *GV = 198 GV->setAlignment(getContext().getDeclAlign(&D).getQuantity()); 199 CGM.setGlobalVisibility(GV, &D); 202 CGM.setTLSMode(GV, D); 206 GV->setDLLStorageClass(llvm::GlobalVariable::DLLImportStorageClass); 208 GV->setDLLStorageClass(llvm::GlobalVariable::DLLExportStorageClass); 215 return llvm::ConstantExpr::getAddrSpaceCast(GV, PTy); 218 return GV; 231 /// has a different type than GV does, this may free GV and return a differen [all...] |
CodeGenModule.h | 319 DeferredGlobal(llvm::GlobalValue *GV, GlobalDecl GD) : GV(GV), GD(GD) {} 320 llvm::AssertingVH<llvm::GlobalValue> GV; 324 void addDeferredDeclToEmit(llvm::GlobalValue *GV, GlobalDecl GD) { 325 DeferredDeclsToEmit.push_back(DeferredGlobal(GV, GD)); 635 void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const; 639 void setTLSMode(llvm::GlobalVariable *GV, const VarDecl &D) const; 821 void MaybeHandleStaticInExternC(const SomeDecl *D, llvm::GlobalValue *GV); 824 void addUsedGlobal(llvm::GlobalValue *GV); [all...] |
CodeGenModule.cpp | 258 const llvm::GlobalValue *GV = getAliasedGlobal(*Alias); 259 if (!GV) { 262 } else if (GV->isDeclaration()) { 289 << GV->getName() << GA->getName(); 476 void CodeGenModule::setGlobalVisibility(llvm::GlobalValue *GV, 479 if (GV->hasLocalLinkage()) { 480 GV->setVisibility(llvm::GlobalValue::DefaultVisibility); 486 if (LV.isVisibilityExplicit() || !GV->hasAvailableExternallyLinkage()) 487 GV->setVisibility(GetLLVMVisibility(LV.getVisibility())); 513 void CodeGenModule::setTLSMode(llvm::GlobalVariable *GV, 1086 auto *gv = new llvm::GlobalVariable(getModule(), Array->getType(), false, local 1099 auto *gv = local [all...] |
ItaniumCXXABI.cpp | [all...] |
MicrosoftCXXABI.cpp | 232 llvm::GlobalVariable *GV) const; 381 if (llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name)) 382 return GV; [all...] |
/external/deqp/framework/common/ |
tcuCompressedTexture.cpp | 709 const deUint8 GV = extend7To8((deUint8)getBits(src, 6, 12)); 719 const int unclampedG = (x * ((int)GH-(int)GO) + y * ((int)GV-(int)GO) + 4*(int)GO + 2) >> 2; [all...] |
/external/lldb/source/Expression/ |
IRForTarget.cpp | 1032 GlobalVariable *gv = dyn_cast<GlobalVariable>(vi->second); local 1853 GlobalVariable *gv = gi; local 1907 GlobalVariable *gv = oi->first; local [all...] |
/external/llvm/lib/Bitcode/Reader/ |
BitcodeReader.cpp | 223 static void UpgradeDLLImportExportLinkage(llvm::GlobalValue *GV, unsigned Val) { 225 case 5: GV->setDLLStorageClass(GlobalValue::DLLImportStorageClass); break; 226 case 6: GV->setDLLStorageClass(GlobalValue::DLLExportStorageClass); break; [all...] |
/external/llvm/lib/CodeGen/AsmPrinter/ |
AsmPrinter.cpp | 77 static unsigned getGVAlignmentLog2(const GlobalValue *GV, const DataLayout &TD, 80 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV)) 87 // If the GV has a specified alignment, take it into account. 88 if (GV->getAlignment() == 0) 91 unsigned GVAlign = Log2_32(GV->getAlignment()); 94 // NumBits because the GV has an assigned section, obey it. 95 if (GVAlign > NumBits || GV->hasSection()) 255 static bool canBeHidden(const GlobalValue *GV, const MCAsmInfo &MAI) { 256 GlobalValue::LinkageTypes Linkage = GV->getLinkage(); 263 if (GV->hasUnnamedAddr() [all...] |
/external/llvm/lib/IR/ |
Verifier.cpp | 256 void visitGlobalValue(const GlobalValue &GV); 257 void visitGlobalVariable(const GlobalVariable &GV); 377 void Verifier::visitGlobalValue(const GlobalValue &GV) { 378 Assert1(!GV.isDeclaration() || GV.isMaterializable() || 379 GV.hasExternalLinkage() || GV.hasExternalWeakLinkage(), 381 &GV); 383 Assert1(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64FastISel.cpp | 133 unsigned AArch64MaterializeGV(const GlobalValue *GV); 242 unsigned AArch64FastISel::AArch64MaterializeGV(const GlobalValue *GV) { 244 if (GV->isThreadLocal()) 252 unsigned char OpFlags = Subtarget->ClassifyGlobalReference(GV, TM); 254 EVT DestEVT = TLI.getValueType(GV->getType(), true); 265 .addGlobalAddress(GV, 0, AArch64II::MO_GOT | AArch64II::MO_PAGE); 271 .addGlobalAddress(GV, 0, AArch64II::MO_GOT | AArch64II::MO_PAGEOFF | 276 ADRPReg).addGlobalAddress(GV, 0, AArch64II::MO_PAGE); 282 .addGlobalAddress(GV, 0, AArch64II::MO_PAGEOFF | AArch64II::MO_NC) 299 else if (const GlobalValue *GV = dyn_cast<GlobalValue>(C) [all...] |
AArch64ISelDAGToDAG.cpp | 593 const GlobalValue *GV = GAN->getGlobal(); 594 unsigned Alignment = GV->getAlignment(); 596 Type *Ty = GV->getType()->getElementType(); [all...] |
/external/llvm/lib/Target/PowerPC/ |
PPCFastISel.cpp | 155 unsigned PPCMaterializeGV(const GlobalValue *GV, MVT VT); [all...] |
PPCISelDAGToDAG.cpp | [all...] |
/external/llvm/lib/Target/X86/ |
X86ISelDAGToDAG.cpp | 64 const GlobalValue *GV; 74 Segment(), GV(nullptr), CP(nullptr), BlockAddr(nullptr), ES(nullptr), 79 return GV != nullptr || CP != nullptr || ES != nullptr || 119 << "GV "; 120 if (GV) 121 GV->dump(); 248 if (AM.GV) 249 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(), 653 // Under X86-64 non-small code model, GV (and friends) are 64-bits, so 662 AM.GV = G->getGlobal() [all...] |
/external/llvm/lib/Target/XCore/ |
XCoreISelLowering.cpp | 257 const GlobalValue *GV, 262 if (GV->getType()->getElementType()->isFunctionTy()) 265 const auto *GVar = dyn_cast<GlobalVariable>(GV); 266 if ((GV->hasSection() && StringRef(GV->getSection()).startswith(".cp.")) || 267 (GVar && GVar->isConstant() && GV->hasLocalLinkage())) 273 static bool IsSmallObject(const GlobalValue *GV, const XCoreTargetLowering &XTL) { 277 Type *ObjType = GV->getType()->getPointerElementType(); 289 const GlobalValue *GV = GN->getGlobal(); 292 if (IsSmallObject(GV, *this)) [all...] |
/external/llvm/lib/Transforms/IPO/ |
GlobalOpt.cpp | 84 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 85 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 105 static bool isLeakCheckerRoot(GlobalVariable *GV) { 114 if (GV->hasPrivateLinkage()) 118 Types.push_back(cast<PointerType>(GV->getType())->getElementType()); 179 /// CleanupPointerRootUsers - This GV is a pointer root. Loop over all users 183 static bool CleanupPointerRootUsers(GlobalVariable *GV, 201 for (Value::user_iterator UI = GV->user_begin(), E = GV->user_end(); 240 CleanupPointerRootUsers(GV, TLI) [all...] |
/external/llvm/lib/Transforms/Utils/ |
SimplifyLibCalls.cpp | [all...] |
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/ |
BitcodeReader.cpp | 97 GlobalVariable *GV = cast<GlobalVariable>(Val); 98 LPI->addClause(GV->getInitializer()); 128 GlobalVariable *GV = cast<GlobalVariable>(Val); 129 LPI->addClause(GV->getInitializer()); [all...] |
/external/llvm/lib/Target/ARM/ |
ARMFastISel.cpp | 186 unsigned ARMMaterializeGV(const GlobalValue *GV, MVT VT); 190 unsigned ARMLowerPICELF(const GlobalValue *GV, unsigned Align, MVT VT); 575 unsigned ARMFastISel::ARMMaterializeGV(const GlobalValue *GV, MVT VT) { 580 bool IsIndirect = Subtarget->GVIsIndirectSymbol(GV, RelocM); 587 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV); 609 TII.get(Opc), DestReg).addGlobalAddress(GV, 0, TF)); 612 unsigned Align = DL.getPrefTypeAlignment(GV->getType()); 615 Align = DL.getTypeAllocSize(GV->getType()); 619 return ARMLowerPICELF(GV, Align, VT); 625 ARMConstantPoolValue *CPV = ARMConstantPoolConstant::Create(GV, Id [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXISelLowering.cpp | 487 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal(); 488 Op = DAG.getTargetGlobalAddress(GV, dl, getPointerTy()); [all...] |