reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  999   if (GVar->hasSection()) {
 1000     if (GVar->getSection() == "llvm.metadata")
 1005   if (GVar->getName().startswith("llvm.") ||
 1006       GVar->getName().startswith("nvvm."))
 1012   PointerType *PTy = GVar->getType();
 1013   Type *ETy = GVar->getValueType();
 1015   if (GVar->hasExternalLinkage()) {
 1016     if (GVar->hasInitializer())
 1020   } else if (GVar->hasLinkOnceLinkage() || GVar->hasWeakLinkage() ||
 1020   } else if (GVar->hasLinkOnceLinkage() || GVar->hasWeakLinkage() ||
 1021              GVar->hasAvailableExternallyLinkage() ||
 1022              GVar->hasCommonLinkage()) {
 1026   if (isTexture(*GVar)) {
 1027     O << ".global .texref " << getTextureName(*GVar) << ";\n";
 1031   if (isSurface(*GVar)) {
 1032     O << ".global .surfref " << getSurfaceName(*GVar) << ";\n";
 1036   if (GVar->isDeclaration()) {
 1040     emitPTXGlobalVariable(GVar, O);
 1045   if (isSampler(*GVar)) {
 1046     O << ".global .samplerref " << getSamplerName(*GVar);
 1049     if (GVar->hasInitializer())
 1050       Initializer = GVar->getInitializer();
 1106   if (GVar->hasPrivateLinkage()) {
 1107     if (strncmp(GVar->getName().data(), "unrollpragma", 12) == 0)
 1111     if (strncmp(GVar->getName().data(), "filename", 8) == 0)
 1113     if (GVar->use_empty())
 1118   if (!processDemoted && canDemoteGlobalVar(GVar, demotedFunc)) {
 1119     O << "// " << GVar->getName() << " has been demoted\n";
 1121       localDecls[demotedFunc].push_back(GVar);
 1124       temp.push_back(GVar);
 1133   if (isManaged(*GVar)) {
 1137   if (GVar->getAlignment() == 0)
 1140     O << " .align " << GVar->getAlignment();
 1151     getSymbol(GVar)->print(O, MAI);
 1155     if (GVar->hasInitializer()) {
 1158         const Constant *Initializer = GVar->getInitializer();
 1168         if (!GVar->getInitializer()->isNullValue() &&
 1169             !isa<UndefValue>(GVar->getInitializer())) {
 1170           report_fatal_error("initial value of '" + GVar->getName() +
 1193           GVar->hasInitializer()) {
 1194         const Constant *Initializer = GVar->getInitializer();
 1201               getSymbol(GVar)->print(O, MAI);
 1206               getSymbol(GVar)->print(O, MAI);
 1213             getSymbol(GVar)->print(O, MAI);
 1223           getSymbol(GVar)->print(O, MAI);
 1232         getSymbol(GVar)->print(O, MAI);