• Home
  • Raw
  • Download

Lines Matching refs:GVar

1012         const GlobalVariable *GVar = cast<GlobalVariable>(V);  in emitLinkageDirective()  local
1013 if (GVar) { in emitLinkageDirective()
1014 if (GVar->hasInitializer()) in emitLinkageDirective()
1038 void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar, in printModuleLevelGV() argument
1043 if (GVar->hasSection()) { in printModuleLevelGV()
1044 if (GVar->getSection() == "llvm.metadata") in printModuleLevelGV()
1049 if (GVar->getName().startswith("llvm.") || in printModuleLevelGV()
1050 GVar->getName().startswith("nvvm.")) in printModuleLevelGV()
1056 PointerType *PTy = GVar->getType(); in printModuleLevelGV()
1057 Type *ETy = GVar->getValueType(); in printModuleLevelGV()
1059 if (GVar->hasExternalLinkage()) { in printModuleLevelGV()
1060 if (GVar->hasInitializer()) in printModuleLevelGV()
1064 } else if (GVar->hasLinkOnceLinkage() || GVar->hasWeakLinkage() || in printModuleLevelGV()
1065 GVar->hasAvailableExternallyLinkage() || in printModuleLevelGV()
1066 GVar->hasCommonLinkage()) { in printModuleLevelGV()
1070 if (llvm::isTexture(*GVar)) { in printModuleLevelGV()
1071 O << ".global .texref " << llvm::getTextureName(*GVar) << ";\n"; in printModuleLevelGV()
1075 if (llvm::isSurface(*GVar)) { in printModuleLevelGV()
1076 O << ".global .surfref " << llvm::getSurfaceName(*GVar) << ";\n"; in printModuleLevelGV()
1080 if (GVar->isDeclaration()) { in printModuleLevelGV()
1084 emitPTXGlobalVariable(GVar, O); in printModuleLevelGV()
1089 if (llvm::isSampler(*GVar)) { in printModuleLevelGV()
1090 O << ".global .samplerref " << llvm::getSamplerName(*GVar); in printModuleLevelGV()
1093 if (GVar->hasInitializer()) in printModuleLevelGV()
1094 Initializer = GVar->getInitializer(); in printModuleLevelGV()
1150 if (GVar->hasPrivateLinkage()) { in printModuleLevelGV()
1152 if (!strncmp(GVar->getName().data(), "unrollpragma", 12)) in printModuleLevelGV()
1156 if (!strncmp(GVar->getName().data(), "filename", 8)) in printModuleLevelGV()
1158 if (GVar->use_empty()) in printModuleLevelGV()
1163 if (!processDemoted && canDemoteGlobalVar(GVar, demotedFunc)) { in printModuleLevelGV()
1164 O << "// " << GVar->getName() << " has been demoted\n"; in printModuleLevelGV()
1166 localDecls[demotedFunc].push_back(GVar); in printModuleLevelGV()
1169 temp.push_back(GVar); in printModuleLevelGV()
1178 if (isManaged(*GVar)) { in printModuleLevelGV()
1182 if (GVar->getAlignment() == 0) in printModuleLevelGV()
1185 O << " .align " << GVar->getAlignment(); in printModuleLevelGV()
1195 getSymbol(GVar)->print(O, MAI); in printModuleLevelGV()
1199 if (GVar->hasInitializer()) { in printModuleLevelGV()
1202 const Constant *Initializer = GVar->getInitializer(); in printModuleLevelGV()
1212 if (!GVar->getInitializer()->isNullValue() && in printModuleLevelGV()
1213 !isa<UndefValue>(GVar->getInitializer())) { in printModuleLevelGV()
1214 report_fatal_error("initial value of '" + GVar->getName() + in printModuleLevelGV()
1236 GVar->hasInitializer()) { in printModuleLevelGV()
1237 const Constant *Initializer = GVar->getInitializer(); in printModuleLevelGV()
1244 getSymbol(GVar)->print(O, MAI); in printModuleLevelGV()
1249 getSymbol(GVar)->print(O, MAI); in printModuleLevelGV()
1256 getSymbol(GVar)->print(O, MAI); in printModuleLevelGV()
1266 getSymbol(GVar)->print(O, MAI); in printModuleLevelGV()
1275 getSymbol(GVar)->print(O, MAI); in printModuleLevelGV()
1362 void NVPTXAsmPrinter::emitPTXGlobalVariable(const GlobalVariable *GVar, in emitPTXGlobalVariable() argument
1368 Type *ETy = GVar->getValueType(); in emitPTXGlobalVariable()
1371 emitPTXAddressSpace(GVar->getType()->getAddressSpace(), O); in emitPTXGlobalVariable()
1372 if (GVar->getAlignment() == 0) in emitPTXGlobalVariable()
1375 O << " .align " << GVar->getAlignment(); in emitPTXGlobalVariable()
1381 getSymbol(GVar)->print(O, MAI); in emitPTXGlobalVariable()
1397 getSymbol(GVar)->print(O, MAI); in emitPTXGlobalVariable()
1745 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(CPV)) { in printScalarConstant() local
1747 if (GVar->getType()->getAddressSpace() != 0) { in printScalarConstant()
1752 getSymbol(GVar)->print(O, MAI); in printScalarConstant()
1755 getSymbol(GVar)->print(O, MAI); in printScalarConstant()
1766 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(v)) { in printScalarConstant() local
1769 getSymbol(GVar)->print(O, MAI); in printScalarConstant()
1772 getSymbol(GVar)->print(O, MAI); in printScalarConstant()
1899 if (const GlobalValue *GVar = dyn_cast<GlobalValue>(CPV)) { in bufferLEByte() local
1900 aggBuffer->addSymbol(GVar, GVar); in bufferLEByte()