[llvm-commits] [llvm] r59756 - /llvm/trunk/include/llvm/Intrinsics.td
Chris Lattner
clattner at apple.com
Fri Nov 21 15:50:59 PST 2008
On Nov 21, 2008, at 3:50 PM, Chris Lattner wrote:
> On Nov 21, 2008, at 2:10 PM, Bill Wendling wrote:
>> I had an idea over lunch which may or may not be good. Here it is
>> though.
>>
>> What if we add a new LLVM instruction, called, say, "flag". It would
>> be similar to the icmp instruction, but unary instead of binary. It
>> would take a mnemonic operator for a flag and an arithmetic
>> expression
>> as its arguments. Here's an example:
>>
>> %sum = add i32 %v1, %v2
>> %of = flag of i32 %sum
>> br i1 %of, label %overflow, label %normal
>
> This doesn't work. LLVM IR needs to be context sensitive. For
s/sensitive/insensitive.
-Chris
More information about the llvm-commits
mailing list