[all-commits] [llvm/llvm-project] a11fee: [CIR] Make cir.alloca alignment mandatory (#172663)
Akimasa Watanuki via All-commits
all-commits at lists.llvm.org
Wed Jan 14 16:15:46 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a11feef2e11da15e4f874bf72dcdc827e60464cb
https://github.com/llvm/llvm-project/commit/a11feef2e11da15e4f874bf72dcdc827e60464cb
Author: Akimasa Watanuki <mencotton0410 at gmail.com>
Date: 2026-01-14 (Wed, 14 Jan 2026)
Changed paths:
M clang/include/clang/CIR/Dialect/IR/CIROps.td
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
M clang/test/CIR/IR/invalid-complex.cir
M clang/test/CIR/IR/invalid-throw.cir
M clang/test/CIR/IR/invalid-try-catch.cir
M clang/test/CIR/IR/invalid-vector.cir
M clang/test/CIR/IR/resume-flat.cir
M clang/test/CIR/IR/struct.cir
M clang/test/CIR/IR/throw.cir
M clang/test/CIR/IR/vector.cir
A clang/test/CIR/Lowering/alloca.cir
M clang/test/CIR/Transforms/complex-create-fold.cir
M clang/test/CIR/Transforms/complex-imag-fold.cir
M clang/test/CIR/Transforms/complex-real-fold.cir
M clang/test/CIR/Transforms/ternary-fold.cir
M clang/test/CIR/Transforms/vector-extract-fold.cir
Log Message:
-----------
[CIR] Make cir.alloca alignment mandatory (#172663)
Fixed a crash in `CIRToLLVMAllocaOpLowering` where `cir.alloca`
operations without an explicit alignment attribute caused failures.
Modified the ODS definition of `cir.alloca` to use
`ConfinedAttr<I64Attr, [IntMinValue<0>]>`. This ensures the attribute is
always present.
Added a regression test in `clang/test/CIR/Lowering/alloca.cir`.
---------
Co-authored-by: Sirui Mu <msrlancern at gmail.com>
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