From f31249ad1cfec46bbd9f85c5eee67c73f54d5672 Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 28 Mar 2016 20:28:08 +0000 Subject: [PATCH] Commit missing parts of 6f5332f8. --- artiq/test/lit/embedding/syscall_flags.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 artiq/test/lit/embedding/syscall_flags.py diff --git a/artiq/test/lit/embedding/syscall_flags.py b/artiq/test/lit/embedding/syscall_flags.py new file mode 100644 index 000000000..aa4398fc7 --- /dev/null +++ b/artiq/test/lit/embedding/syscall_flags.py @@ -0,0 +1,18 @@ +# RUN: env ARTIQ_DUMP_LLVM=%t %python -m artiq.compiler.testbench.embedding +compile %s +# RUN: OutputCheck %s --file-to-check=%t.ll + +from artiq.language.core import * +from artiq.language.types import * + +# CHECK: call void @foo\(\), !dbg !\d+, !tbaa !\d+ + +# CHECK-L: ; Function Attrs: nounwind +# CHECK-NEXT-L: declare void @foo() + +@syscall("foo", flags={"nounwind", "nowrite"}) +def foo() -> TNone: + pass + +@kernel +def entrypoint(): + foo()