|
@@ -6154,6 +6154,7 @@ public:
|
|
|
|
|
|
void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
|
|
void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
|
|
CodeGen::CodeGenModule &M) const override;
|
|
CodeGen::CodeGenModule &M) const override;
|
|
|
|
+ bool shouldEmitStaticExternCAliases() const override;
|
|
|
|
|
|
private:
|
|
private:
|
|
// Adds a NamedMDNode with F, Name, and Operand as operands, and adds the
|
|
// Adds a NamedMDNode with F, Name, and Operand as operands, and adds the
|
|
@@ -6275,6 +6276,10 @@ void NVPTXTargetCodeGenInfo::addNVVMMetadata(llvm::Function *F, StringRef Name,
|
|
// Append metadata to nvvm.annotations
|
|
// Append metadata to nvvm.annotations
|
|
MD->addOperand(llvm::MDNode::get(Ctx, MDVals));
|
|
MD->addOperand(llvm::MDNode::get(Ctx, MDVals));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+bool NVPTXTargetCodeGenInfo::shouldEmitStaticExternCAliases() const {
|
|
|
|
+ return false;
|
|
|
|
+}
|
|
}
|
|
}
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
//===----------------------------------------------------------------------===//
|
|
@@ -7646,6 +7651,7 @@ public:
|
|
createEnqueuedBlockKernel(CodeGenFunction &CGF,
|
|
createEnqueuedBlockKernel(CodeGenFunction &CGF,
|
|
llvm::Function *BlockInvokeFunc,
|
|
llvm::Function *BlockInvokeFunc,
|
|
llvm::Value *BlockLiteral) const override;
|
|
llvm::Value *BlockLiteral) const override;
|
|
|
|
+ bool shouldEmitStaticExternCAliases() const override;
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
|
|
@@ -7777,6 +7783,10 @@ AMDGPUTargetCodeGenInfo::getLLVMSyncScopeID(SyncScope S,
|
|
return C.getOrInsertSyncScopeID(Name);
|
|
return C.getOrInsertSyncScopeID(Name);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+bool AMDGPUTargetCodeGenInfo::shouldEmitStaticExternCAliases() const {
|
|
|
|
+ return false;
|
|
|
|
+}
|
|
|
|
+
|
|
//===----------------------------------------------------------------------===//
|
|
//===----------------------------------------------------------------------===//
|
|
// SPARC v8 ABI Implementation.
|
|
// SPARC v8 ABI Implementation.
|
|
// Based on the SPARC Compliance Definition version 2.4.1.
|
|
// Based on the SPARC Compliance Definition version 2.4.1.
|