[llvm] [AArch64][SVE] Tweak how SVE CFI expressions are emitted (PR #151677)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 02:22:48 PDT 2025
================
@@ -5861,33 +5861,41 @@ void AArch64InstrInfo::decomposeStackOffsetForFrameOffsets(
}
}
-// Convenience function to create a DWARF expression for
-// Expr + NumBytes + NumVGScaledBytes * AArch64::VG
-static void appendVGScaledOffsetExpr(SmallVectorImpl<char> &Expr, int NumBytes,
- int NumVGScaledBytes, unsigned VG,
- llvm::raw_string_ostream &Comment) {
- uint8_t buffer[16];
-
- if (NumBytes) {
+// Convenience function to create a DWARF expression for `Op` Value.
+// This helper emits compact sequences for common cases.
+static void appendConstantExpr(SmallVectorImpl<char> &Expr, int64_t Value,
+ uint8_t Op) {
----------------
MacDue wrote:
Tweaked the docs and renamed `Value` -> `Constant` and `Op` to `Operation` (and changed the type to the correct enum).
https://github.com/llvm/llvm-project/pull/151677
More information about the llvm-commits
mailing list