[llvm-branch-commits] [SPARC][IAS] Add IAS flag handling for ISA levels (PR #124953)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 29 09:14:57 PST 2025
================
@@ -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<llvm::SmallVector<const char *>>(Value)
----------------
koachan wrote:
I have a feeling that this part could be done better...?
https://github.com/llvm/llvm-project/pull/124953
More information about the llvm-branch-commits
mailing list