OSDN Git Service

android: tblgen: generate AArch64GenGICombiner.inc
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 9 Feb 2020 19:44:13 +0000 (20:44 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:08 +0000 (13:05 +0200)
Fixes the following building error:

external/llvm/lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp:31:10:
fatal error: 'AArch64GenGICombiner.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

llvm/lib/Target/AArch64/Android.bp
llvm/soong/tblgen.go

index 125558f..40ad882 100644 (file)
@@ -44,6 +44,7 @@ llvm_tblgen {
         "AArch64GenSystemOperands.inc",
         "AArch64GenRegisterBank.inc",
         "AArch64GenGlobalISel.inc",
+        "AArch64GenGICombiner.inc",
     ],
 }
 
index 0ce2736..39eafde 100644 (file)
@@ -139,6 +139,8 @@ func outToGenerator(ctx android.ModuleContext, out string) string {
                return "-gen-dfa-packetizer"
        case strings.HasSuffix(out, "GenRegisterBank.inc"):
                return "-gen-register-bank"
+       case strings.HasSuffix(out, "GenGICombiner.inc"):
+               return "-gen-global-isel-combiner -combiners=\"AArch64PreLegalizerCombinerHelper\""
        case strings.HasSuffix(out, "GenGlobalISel.inc"):
                return "-gen-global-isel"
        case strings.HasSuffix(out, "X86GenEVEX2VEXTables.inc"):