[LLVMdev] Matching icmp/fcmp in a back-end
robert.quill at imgtec.com
Thu Dec 17 03:52:05 PST 2009
I was wondering if it is possible to match the icmp and fcmp assembly
language instructions in the code generator. For example, for the
%cmp = icmp sgt i32 %tmp, %tmp1 ; <i1> [#uses=1]
br i1 %cmp, label %if.then, label %if.else
We would like to see something like:
SGT cmp, tmp, tmp1
BR cmp lbl
However, I can't see any case in the back-ends where anyone matches the
cmp instruction on it's own (without using Pat<...>). Is this possible?
Thanks for your help,
This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm
Imagination Technologies Ltd is a limited company registered in England No: 1306335
Registered Office: Imagination House, Home Park Estate, Kings Langley, Hertfordshire, WD4 8LZ.
Email to and from the company may be monitored for compliance and other administrative purposes.
More information about the llvm-dev