[llvm] [GlobalISel][AArch64] Legalize G_FABS and G_FNEG for SVE (PR #114784)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 13:15:05 PST 2024


================
@@ -179,3 +179,21 @@ def AArch64 : Target {
 //===----------------------------------------------------------------------===//
 
 include "AArch64PfmCounters.td"
+
+
+//===----------------------------------------------------------------------===//
+// GlobalISel patterns
+//===----------------------------------------------------------------------===//
+
+include "AArch64GlobalISelPatterns.td"
+
+// We want to first hit the instruction patterns.
+foreach VT = [nxv2bf16, nxv4bf16, nxv8bf16] in {
----------------
tschuett wrote:

Upstream they are in AArch64SVEInstrInfo.td. I just need to find a place for the new patterns to be before the old patterns.

https://github.com/llvm/llvm-project/blob/5fae408d3a4c073ee43aec9906fa44ffe4026301/llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td#L686

https://github.com/llvm/llvm-project/pull/114784


More information about the llvm-commits mailing list