[all-commits] [llvm/llvm-project] 2058c5: [CIR] Record the ABI slot kind and widen memory ef...
Adam Smith via All-commits
all-commits at lists.llvm.org
Mon Sep 14 13:41:30 PDT 2026
Branch: refs/heads/users/adams381/cir-callconv-argmem-memory-effects
Home: https://github.com/llvm/llvm-project
Commit: 2058c570d5f0f4636f5eff658c94de85bcfb4231
https://github.com/llvm/llvm-project/commit/2058c570d5f0f4636f5eff658c94de85bcfb4231
Author: Adam Smith <adams at nvidia.com>
Date: 2026-09-14 (Mon, 14 Sep 2026)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
M clang/include/clang/CIR/Dialect/IR/CIRDialect.td
M clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
M clang/test/CIR/CodeGen/arg-attrs.cpp
M clang/test/CIR/CodeGen/array-ctor.cpp
M clang/test/CIR/CodeGen/bind-temporary-lvalue.cpp
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-empty.cpp
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-indirect.c
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-non-byval.cpp
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-packed.c
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-padded.c
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-variadic.c
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-vptr.cpp
M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-zero-width-bitfield.c
M clang/test/CIR/CodeGen/call.c
M clang/test/CIR/CodeGen/cleanup-conditional-with-wrapper-eh.cpp
M clang/test/CIR/CodeGen/cleanup-conditional-with-wrapper.cpp
M clang/test/CIR/CodeGen/paren-list-agg-init.cpp
M clang/test/CIR/CodeGen/partial-array-cleanup.cpp
M clang/test/CIR/CodeGen/side-effect.cpp
M clang/test/CIR/CodeGenOpenACC/declare-copy.cpp
M clang/test/CIR/CodeGenOpenACC/declare-copyin.cpp
M clang/test/CIR/CodeGenOpenACC/declare-copyout.cpp
M clang/test/CIR/CodeGenOpenACC/declare-create.cpp
M clang/test/CIR/CodeGenOpenACC/declare-deviceresident.cpp
M clang/test/CIR/CodeGenOpenACC/declare-present.cpp
M clang/test/CIR/Transforms/abi-lowering/byval-sret-arg-attr-lowering.cir
M clang/test/CIR/Transforms/abi-lowering/indirect-byval.cir
M clang/test/CIR/Transforms/abi-lowering/indirect-call.cir
M clang/test/CIR/Transforms/abi-lowering/indirect-non-byval-forward-param.cir
M clang/test/CIR/Transforms/abi-lowering/side-effect-argmem.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-bitfield.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-bitint.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-empty-class.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-record-packed.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-struct-indirect.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-struct-padded.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-union.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-variadic-call.cir
M clang/test/CIR/Transforms/abi-lowering/x86_64-vptr.cir
Log Message:
-----------
[CIR] Record the ABI slot kind and widen memory effects for it
A const or pure function handed an sret, byval or non-byval slot reaches
argument memory whatever its source attributes say, so memory(none) or
memory(read) on it is false. The verifier catches that on sret. On the
others the IR verifies and the optimizer is free to delete stores the callee
reads.
Lowering could not tell which arguments were the ABI's own. With llvm.byref
gone, a non-byval slot carries nothing a plain pointer parameter does not, so
the pass now records the slot kind it created and lowering reads that rather
than guessing from LLVM attribute names.
And side-effect-argmem.cir moves off mlir-translate, which is not built here,
onto cir-translate like every other test in that directory.
Assisted-by: Cursor / claude-opus-5
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list