[LLVMdev] Support for per-loop pragma
Devang Patel
devang.patel at gmail.com
Wed Jun 2 09:48:11 PDT 2010
On Tue, Jun 1, 2010 at 5:42 PM, Junjie Gu <jgu222 at gmail.com> wrote:
> Any suggestions/ideas ?
IIUC, Chris suggested something like following ...
header:
br i1 %x, label %then, %label endif
then:
...
br i1 %y, label %loop_exit, label %header, !loop_pragma !1
endif:
...
br i1 %z, label %loop_exit, label %header, !loop_pragma !2
loop_exit:
ret i32 1
Where !1 and !2 are the metadata for your loop pragma.
-
Devang
More information about the llvm-dev
mailing list