Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-llvm: Commit

external/llvm


Commit MetaInfo

Révisionf5bec1cbb4e7b7637fca367be043956c01270631 (tree)
l'heure2019-09-22 21:36:30
AuteurMauro Rossi <issor.oruam@gmai...>
CommiterMauro Rossi

Message de Log

android: AMDGPU: add support for Disassembler target

Necessary for the new Valve ACO compiler in mesa 19.3

LLVMInitializeAMDGPUDisassembler() function exposed conditionally
to FORCE_BUILD_AMDGPU macro definition in mesa src/amd/Android.compiler.mk
as per other AMDGPU targets

Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>

Change Summary

Modification

--- a/Android.bp
+++ b/Android.bp
@@ -216,6 +216,7 @@ llvm_amdgpu_static_libraries = [
216216 "libLLVMAMDGPUAsmParser",
217217 "libLLVMAMDGPUAsmPrinter",
218218 "libLLVMAMDGPUUtils",
219+ "libLLVMAMDGPUDisassembler",
219220 ]
220221
221222
--- a/device/include/llvm/Config/Disassemblers.def
+++ b/device/include/llvm/Config/Disassemblers.def
@@ -31,6 +31,10 @@
3131 #elif defined(__i386__) || defined(__x86_64__)
3232 LLVM_DISASSEMBLER(X86)
3333
34+#if defined(FORCE_BUILD_AMDGPU)
35+ LLVM_DISASSEMBLER(AMDGPU)
36+#endif
37+
3438 #if defined(FORCE_BUILD_ARM)
3539 LLVM_DISASSEMBLER(ARM)
3640 LLVM_DISASSEMBLER(AArch64)
--- a/lib/Target/AMDGPU/Android.bp
+++ b/lib/Target/AMDGPU/Android.bp
@@ -42,6 +42,7 @@ llvm_tblgen {
4242 "AMDGPUGenGlobalISel.inc",
4343 "AMDGPUGenMCPseudoLowering.inc",
4444 "AMDGPUGenSearchableTables.inc",
45+ "AMDGPUGenDisassemblerTables.inc",
4546 ],
4647 }
4748
--- /dev/null
+++ b/lib/Target/AMDGPU/Disassembler/Android.bp
@@ -0,0 +1,8 @@
1+cc_library_static {
2+ name: "libLLVMAMDGPUDisassembler",
3+ defaults: [
4+ "llvm-lib-defaults",
5+ "llvm-amdgpu-defaults",
6+ ],
7+ srcs: ["*.cpp"],
8+}
Afficher sur ancien navigateur de dépôt.