inalloca.ll 540 B

12345678910111213141516171819
  1. ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
  2. ; RUN: verify-uselistorder < %s
  3. ; inalloca should roundtrip.
  4. define void @foo(i32* inalloca %args) {
  5. ret void
  6. }
  7. ; CHECK-LABEL: define void @foo(i32* inalloca %args)
  8. define void @bar() {
  9. ; Use the maximum alignment, since we stuff our bit with alignment.
  10. %args = alloca inalloca i32, align 536870912
  11. call void @foo(i32* inalloca %args)
  12. ret void
  13. }
  14. ; CHECK-LABEL: define void @bar() {
  15. ; CHECK: %args = alloca inalloca i32, align 536870912
  16. ; CHECK: call void @foo(i32* inalloca %args)