Port to Android.bp of commit
a174f0da62f ("AMDGPU/GlobalISel: Add pre-legalize combiner pass")
Fixes the following build error:
external/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp:32:10:
fatal error: 'AMDGPUGenPreLegalizeGICombiner.inc' file not found
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
in: "AMDGPUGISel.td",
outs: [
"AMDGPUGenGlobalISel.inc",
+ "AMDGPUGenPreLegalizeGICombiner.inc",
],
}
return "-gen-global-isel-combiner -combiners=\"AArch64PreLegalizerCombinerHelper\""
case strings.HasSuffix(out, "AArch64GenPostLegalizeGICombiner.inc"):
return "-gen-global-isel-combiner -combiners=\"AArch64PostLegalizerCombinerHelper\""
+ case strings.HasSuffix(out, "AMDGPUGenPreLegalizeGICombiner.inc"):
+ return "-gen-global-isel-combiner -combiners=\"AMDGPUPreLegalizerCombinerHelper\""
case strings.HasSuffix(out, "GenGlobalISel.inc"):
return "-gen-global-isel"
case strings.HasSuffix(out, "X86GenEVEX2VEXTables.inc"):