[llvm] [AMDGPU][CFI] Replace CFA expression escapes with typed directives (PR #221011)
Scott Linder via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 10:53:24 PDT 2026
================
@@ -2149,6 +2153,10 @@ bool AsmParser::parseStatement(ParseStatementInfo &Info,
return parseDirectiveCFIDefCfaRegister(IDLoc);
case DK_CFI_LLVM_DEF_ASPACE_CFA:
return parseDirectiveCFILLVMDefAspaceCfa(IDLoc);
+ case DK_CFI_LLVM_DEF_ASPACE_CFA_LITERAL:
+ return parseDirectiveCFILLVMDefCfaConstantAddress(IDLoc);
+ case DK_CFI_LLVM_DEF_ASPACE_CFA_SCALED:
----------------
slinder1 wrote:
The change in names between `LITERAL`/`ConstantAddress` and `SCALED`/`AddressTransform` doesn't seem to add any value (and just makes the relationship less obvious)
I think I would prefer the two share the same `NounAdjective` form, and use the more specific adjective, i.e. `AddressConstant` and `AddressScaled`. What do you think?
https://github.com/llvm/llvm-project/pull/221011
More information about the llvm-commits
mailing list