Skip to content

Commit 45bb48e

Browse files
committed
R600 -> AMDGPU rename
llvm-svn: 239657
1 parent 8fa9677 commit 45bb48e

File tree

552 files changed

+62
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

552 files changed

+62
-60
lines changed

llvm/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ set(LLVM_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/include)
176176

177177
set(LLVM_ALL_TARGETS
178178
AArch64
179+
AMDGPU
179180
ARM
180181
BPF
181182
CppBackend
@@ -184,7 +185,6 @@ set(LLVM_ALL_TARGETS
184185
MSP430
185186
NVPTX
186187
PowerPC
187-
R600
188188
Sparc
189189
SystemZ
190190
X86

llvm/autoconf/configure.ac

+3-2
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
10971097
fi
10981098

10991099
dnl List all possible targets
1100-
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600 BPF"
1100+
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
11011101
AC_SUBST(ALL_TARGETS,$ALL_TARGETS)
11021102

11031103
dnl Allow specific targets to be specified for building (or not)
@@ -1132,7 +1132,8 @@ case "$enableval" in
11321132
hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
11331133
nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
11341134
systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
1135-
r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
1135+
amdgpu) ;&
1136+
r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
11361137
host) case "$llvm_cv_target_arch" in
11371138
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
11381139
x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;

llvm/configure

+3-2
Original file line numberDiff line numberDiff line change
@@ -5628,7 +5628,7 @@ _ACEOF
56285628

56295629
fi
56305630

5631-
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600 BPF"
5631+
ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
56325632
ALL_TARGETS=$ALL_TARGETS
56335633

56345634

@@ -5665,7 +5665,8 @@ case "$enableval" in
56655665
hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
56665666
nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
56675667
systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5668-
r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5668+
amdgpu) ;&
5669+
r600) TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
56695670
host) case "$llvm_cv_target_arch" in
56705671
x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
56715672
x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;

llvm/docs/R600Usage.rst llvm/docs/AMDGPUUsage.rst

+5-5

llvm/docs/CompilerWriterInfo.rst

+2-2

llvm/docs/GettingStarted.rst

+1-1

llvm/docs/index.rst

+3-3
File renamed without changes.
File renamed without changes.

llvm/lib/Target/R600/AMDGPUAsmPrinter.cpp llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -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
}

llvm/lib/Target/R600/AMDGPUTargetMachine.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -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);
File renamed without changes.

llvm/lib/Target/R600/AsmParser/AMDGPUAsmParser.cpp llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ void AMDGPUAsmParser::cvtVOP3(MCInst &Inst, const OperandVector &Operands) {
13691369
}
13701370

13711371
/// Force static initialization.
1372-
extern "C" void LLVMInitializeR600AsmParser() {
1372+
extern "C" void LLVMInitializeAMDGPUAsmParser() {
13731373
RegisterMCAsmParser<AMDGPUAsmParser> A(TheAMDGPUTarget);
13741374
RegisterMCAsmParser<AMDGPUAsmParser> B(TheGCNTarget);
13751375
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_llvm_library(LLVMAMDGPUAsmParser
2+
AMDGPUAsmParser.cpp
3+
)

llvm/lib/Target/R600/MCTargetDesc/LLVMBuild.txt llvm/lib/Target/AMDGPU/AsmParser/LLVMBuild.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;===- ./lib/Target/R600/MCTargetDesc/LLVMBuild.txt -------------*- Conf -*--===;
1+
;===- ./lib/Target/AMDGPU/AsmParser/LLVMBuild.txt -------------*- Conf -*--===;
22
;
33
; The LLVM Compiler Infrastructure
44
;
@@ -17,7 +17,7 @@
1717

1818
[component_0]
1919
type = Library
20-
name = R600Desc
21-
parent = R600
22-
required_libraries = MC R600AsmPrinter R600Info Support
23-
add_to_library_groups = R600
20+
name = AMDGPUAsmParser
21+
parent = AMDGPU
22+
required_libraries = MC MCParser AMDGPUDesc AMDGPUInfo Support
23+
add_to_library_groups = AMDGPU

llvm/lib/Target/R600/CMakeLists.txt llvm/lib/Target/AMDGPU/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tablegen(LLVM AMDGPUGenAsmWriter.inc -gen-asm-writer)
1212
tablegen(LLVM AMDGPUGenAsmMatcher.inc -gen-asm-matcher)
1313
add_public_tablegen_target(AMDGPUCommonTableGen)
1414

15-
add_llvm_target(R600CodeGen
15+
add_llvm_target(AMDGPUCodeGen
1616
AMDILCFGStructurizer.cpp
1717
AMDGPUAlwaysInlinePass.cpp
1818
AMDGPUAsmPrinter.cpp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_llvm_library(LLVMAMDGPUAsmPrinter
2+
AMDGPUInstPrinter.cpp
3+
)

llvm/lib/Target/R600/InstPrinter/LLVMBuild.txt llvm/lib/Target/AMDGPU/InstPrinter/LLVMBuild.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;===- ./lib/Target/R600/InstPrinter/LLVMBuild.txt -----------*- Conf -*--===;
1+
;===- ./lib/Target/AMDGPU/InstPrinter/LLVMBuild.txt -----------*- Conf -*--===;
22
;
33
; The LLVM Compiler Infrastructure
44
;
@@ -17,8 +17,8 @@
1717

1818
[component_0]
1919
type = Library
20-
name = R600AsmPrinter
21-
parent = R600
20+
name = AMDGPUAsmPrinter
21+
parent = AMDGPU
2222
required_libraries = MC Support
23-
add_to_library_groups = R600
23+
add_to_library_groups = AMDGPU
2424

llvm/lib/Target/R600/LLVMBuild.txt llvm/lib/Target/AMDGPU/LLVMBuild.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ subdirectories = AsmParser InstPrinter MCTargetDesc TargetInfo
2020

2121
[component_0]
2222
type = TargetGroup
23-
name = R600
23+
name = AMDGPU
2424
parent = Target
2525
has_asmparser = 1
2626
has_asmprinter = 1
2727

2828
[component_1]
2929
type = Library
30-
name = R600CodeGen
31-
parent = R600
32-
required_libraries = Analysis AsmPrinter CodeGen Core IPO MC R600AsmParser R600AsmPrinter R600Desc R600Info Scalar SelectionDAG Support Target TransformUtils
33-
add_to_library_groups = R600
30+
name = AMDGPUCodeGen
31+
parent = AMDGPU
32+
required_libraries = Analysis AsmPrinter CodeGen Core IPO MC AMDGPUAsmParser AMDGPUAsmPrinter AMDGPUDesc AMDGPUInfo Scalar SelectionDAG Support Target TransformUtils
33+
add_to_library_groups = AMDGPU

llvm/lib/Target/R600/MCTargetDesc/AMDGPUMCTargetDesc.cpp llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -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

llvm/lib/Target/R600/MCTargetDesc/CMakeLists.txt llvm/lib/Target/AMDGPU/MCTargetDesc/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
add_llvm_library(LLVMR600Desc
2+
add_llvm_library(LLVMAMDGPUDesc
33
AMDGPUAsmBackend.cpp
44
AMDGPUELFObjectWriter.cpp
55
AMDGPUMCCodeEmitter.cpp

llvm/lib/Target/R600/AsmParser/LLVMBuild.txt llvm/lib/Target/AMDGPU/MCTargetDesc/LLVMBuild.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;===- ./lib/Target/R600/AsmParser/LLVMBuild.txt -------------*- Conf -*--===;
1+
;===- ./lib/Target/AMDGPU/MCTargetDesc/LLVMBuild.txt -------------*- Conf -*--===;
22
;
33
; The LLVM Compiler Infrastructure
44
;
@@ -17,7 +17,7 @@
1717

1818
[component_0]
1919
type = Library
20-
name = R600AsmParser
21-
parent = R600
22-
required_libraries = MC MCParser R600Desc R600Info Support
23-
add_to_library_groups = R600
20+
name = AMDGPUDesc
21+
parent = AMDGPU
22+
required_libraries = MC AMDGPUAsmPrinter AMDGPUInfo Support
23+
add_to_library_groups = AMDGPU
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

llvm/lib/Target/R600/TargetInfo/AMDGPUTargetInfo.cpp llvm/lib/Target/AMDGPU/TargetInfo/AMDGPUTargetInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -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");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_llvm_library(LLVMAMDGPUInfo
2+
AMDGPUTargetInfo.cpp
3+
)

llvm/lib/Target/R600/TargetInfo/LLVMBuild.txt llvm/lib/Target/AMDGPU/TargetInfo/LLVMBuild.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;===- ./lib/Target/R600/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===;
1+
;===- ./lib/Target/AMDGPU/TargetInfo/LLVMBuild.txt --------------*- Conf -*--===;
22
;
33
; The LLVM Compiler Infrastructure
44
;
@@ -17,7 +17,7 @@
1717

1818
[component_0]
1919
type = Library
20-
name = R600Info
21-
parent = R600
20+
name = AMDGPUInfo
21+
parent = AMDGPU
2222
required_libraries = Support
23-
add_to_library_groups = R600
23+
add_to_library_groups = AMDGPU

llvm/lib/Target/LLVMBuild.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
; will typically require only insertion of a line.
2020
[common]
2121
subdirectories =
22+
AMDGPU
2223
ARM
2324
AArch64
2425
BPF
@@ -28,7 +29,6 @@ subdirectories =
2829
NVPTX
2930
Mips
3031
PowerPC
31-
R600
3232
Sparc
3333
SystemZ
3434
X86

llvm/lib/Target/R600/AsmParser/CMakeLists.txt

-3
This file was deleted.

llvm/lib/Target/R600/InstPrinter/CMakeLists.txt

-3
This file was deleted.

llvm/lib/Target/R600/TargetInfo/CMakeLists.txt

-3
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
if not 'AMDGPU' in config.root.targets:
2+
config.unsupported = True
File renamed without changes.

0 commit comments

Comments
 (0)