[llvm-branch-commits] [SPARC][IAS] Add IAS flag handling for ISA levels (PR #124953)

2025-01-30 Thread via llvm-branch-commits

koachan wrote:

New PR is at https://github.com/llvm/llvm-project/pull/125151.

https://github.com/llvm/llvm-project/pull/124953
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits


[llvm-branch-commits] [SPARC][IAS] Add IAS flag handling for ISA levels (PR #124953)

2025-01-30 Thread via llvm-branch-commits

https://github.com/koachan closed 
https://github.com/llvm/llvm-project/pull/124953
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits


[llvm-branch-commits] [SPARC][IAS] Add IAS flag handling for ISA levels (PR #124953)

2025-01-29 Thread via llvm-branch-commits


@@ -2738,6 +2739,31 @@ static void 
CollectArgsForIntegratedAssembler(Compilation &C,
 if (MipsTargetFeature)
   continue;
 break;
+
+  case llvm::Triple::sparc:
+  case llvm::Triple::sparcel:
+  case llvm::Triple::sparcv9:
+if (Value == "--undeclared-regs") {
+  // LLVM already allows undeclared use of G registers, so this option
+  // becomes a no-op. This solely exists for GNU compatibility.
+  // TODO implement --no-undeclared-regs
+  continue;
+}
+SparcTargetFeatures =
+llvm::StringSwitch>(Value)

koachan wrote:

I have a feeling that this part could be done better...?

https://github.com/llvm/llvm-project/pull/124953
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits


[llvm-branch-commits] [SPARC][IAS] Add IAS flag handling for ISA levels (PR #124953)

2025-01-29 Thread via llvm-branch-commits

https://github.com/koachan edited 
https://github.com/llvm/llvm-project/pull/124953
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits