OSDN Git Service

android: [AArch64][GlobalISel] Split post-legalizer combiner
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 30 Jan 2021 10:25:11 +0000 (11:25 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:15 +0000 (13:05 +0200)
Porting of commit
147b9497e79a ("[AArch64][GlobalISel] Split post-legalizer combiner to allow for lowering at -O0")

Fixes the following building error:

external/llvm-project/llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp:614:10: fatal error: 'AArch64GenPostLegalizeGILowering.inc' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

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

index 97fe0ab..d8f68f5 100644 (file)
@@ -49,6 +49,7 @@ llvm_tblgen {
         "AArch64GenGlobalISel.inc",
         "AArch64GenPreLegalizeGICombiner.inc",
         "AArch64GenPostLegalizeGICombiner.inc",
+        "AArch64GenPostLegalizeGILowering.inc",
     ],
 }
 
index 56b513c..de9c58e 100644 (file)
@@ -143,6 +143,8 @@ func outToGenerator(ctx android.ModuleContext, out string) string {
                return "-gen-global-isel-combiner -combiners=\"AArch64PreLegalizerCombinerHelper\""
        case strings.HasSuffix(out, "AArch64GenPostLegalizeGICombiner.inc"):
                return "-gen-global-isel-combiner -combiners=\"AArch64PostLegalizerCombinerHelper\""
+       case strings.HasSuffix(out, "AArch64GenPostLegalizeGILowering.inc"):
+               return "-gen-global-isel-combiner -combiners=\"AArch64PostLegalizerLoweringHelper\""
        case strings.HasSuffix(out, "AMDGPUGenPreLegalizeGICombiner.inc"):
                return "-gen-global-isel-combiner -combiners=\"AMDGPUPreLegalizerCombinerHelper\""
        case strings.HasSuffix(out, "AMDGPUGenPostLegalizeGICombiner.inc"):