Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-llvm: Commit

external/llvm


Commit MetaInfo

Révision1d51ee93c8f0e2f3fb04d7fb4084b0f4689efaa0 (tree)
l'heure2016-01-05 00:47:04
AuteurMauro Rossi <issor.oruam@gmai...>
CommiterMauro Rossi

Message de Log

Rename LLVMInitializeR600* to LLVMInitializeAMDGPU*

These changes enable building current mesa 11.0.x and later,
by exposing llvm:: namespace as espected for 3.7.x,
while still having 3.7.0svn in marshmallow-x86 branch.

These changes will enable building radeonsi with llvm 3.7,
with few changes in mesa android makefiles,
to support new elfutils path and MESA_LLVM_VERSION,
but without any changes in the c/cpp sources.

Change Summary

Modification

--- a/lib/Target/R600/AMDGPUAsmPrinter.cpp
+++ b/lib/Target/R600/AMDGPUAsmPrinter.cpp
@@ -80,7 +80,7 @@ createAMDGPUAsmPrinterPass(TargetMachine &tm,
8080 return new AMDGPUAsmPrinter(tm, std::move(Streamer));
8181 }
8282
83-extern "C" void LLVMInitializeR600AsmPrinter() {
83+extern "C" void LLVMInitializeAMDGPUAsmPrinter() {
8484 TargetRegistry::RegisterAsmPrinter(TheAMDGPUTarget, createAMDGPUAsmPrinterPass);
8585 TargetRegistry::RegisterAsmPrinter(TheGCNTarget, createAMDGPUAsmPrinterPass);
8686 }
--- a/lib/Target/R600/AMDGPUTargetMachine.cpp
+++ b/lib/Target/R600/AMDGPUTargetMachine.cpp
@@ -37,7 +37,7 @@
3737
3838 using namespace llvm;
3939
40-extern "C" void LLVMInitializeR600Target() {
40+extern "C" void LLVMInitializeAMDGPUTarget() {
4141 // Register the target
4242 RegisterTargetMachine<R600TargetMachine> X(TheAMDGPUTarget);
4343 RegisterTargetMachine<GCNTargetMachine> Y(TheGCNTarget);
--- a/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp
+++ b/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp
@@ -1264,7 +1264,7 @@ void AMDGPUAsmParser::cvtVOP3(MCInst &Inst, const OperandVector &Operands) {
12641264 }
12651265
12661266 /// Force static initialization.
1267-extern "C" void LLVMInitializeR600AsmParser() {
1267+extern "C" void LLVMInitializeAMDGPUAsmParser() {
12681268 RegisterMCAsmParser<AMDGPUAsmParser> A(TheAMDGPUTarget);
12691269 RegisterMCAsmParser<AMDGPUAsmParser> B(TheGCNTarget);
12701270 }
--- a/lib/Target/R600/MCTargetDesc/AMDGPUMCTargetDesc.cpp
+++ b/lib/Target/R600/MCTargetDesc/AMDGPUMCTargetDesc.cpp
@@ -72,7 +72,7 @@ static MCInstPrinter *createAMDGPUMCInstPrinter(const Triple &T,
7272 return new AMDGPUInstPrinter(MAI, MII, MRI);
7373 }
7474
75-extern "C" void LLVMInitializeR600TargetMC() {
75+extern "C" void LLVMInitializeAMDGPUTargetMC() {
7676 for (Target *T : {&TheAMDGPUTarget, &TheGCNTarget}) {
7777 RegisterMCAsmInfo<AMDGPUMCAsmInfo> X(*T);
7878
--- a/lib/Target/R600/TargetInfo/AMDGPUTargetInfo.cpp
+++ b/lib/Target/R600/TargetInfo/AMDGPUTargetInfo.cpp
@@ -23,7 +23,7 @@ Target llvm::TheAMDGPUTarget;
2323 Target llvm::TheGCNTarget;
2424
2525 /// \brief Extern function to initialize the targets for the AMDGPU backend
26-extern "C" void LLVMInitializeR600TargetInfo() {
26+extern "C" void LLVMInitializeAMDGPUTargetInfo() {
2727 RegisterTarget<Triple::r600, false>
2828 R600(TheAMDGPUTarget, "r600", "AMD GPUs HD2XXX-HD6XXX");
2929 RegisterTarget<Triple::amdgcn, false> GCN(TheGCNTarget, "amdgcn", "AMD GCN GPUs");
Afficher sur ancien navigateur de dépôt.