[llvm] [AMDGPU] Add lit() asm operand modifier for SP3 compatibility. (PR #68839)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 23:25:24 PDT 2023


================
@@ -3005,7 +3006,7 @@ bool
 AMDGPUAsmParser::isNamedOperandModifier(const AsmToken &Token, const AsmToken &NextToken) const {
   if (Token.is(AsmToken::Identifier) && NextToken.is(AsmToken::LParen)) {
     const auto &str = Token.getString();
-    return str == "abs" || str == "neg" || str == "sext";
----------------
jayfoad wrote:

Today I learned that we already accept `abs(...)` and `neg(...)`. I had no idea!

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


More information about the llvm-commits mailing list