commit | 44fcf4faa82945b0cbbdd33094b3b5d4b7cf0a76 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Aug 04 00:20:15 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Aug 04 00:20:15 2007 +0000 |
tree | d4a14855abf00fea4d0143320d1c5790a3323ae7 | |
parent | c6fb568b7cdfd084503f8f0b3f95a603fc650162 [diff] |
Implement codegen for __builtin_choose_expr. For example: struct X { int A; }; void foo() { struct X s; int i; i = __builtin_choose_expr(0, s, i); } compiles to: %tmp = load i32* %i ; <i32> [#uses=1] store i32 %tmp, i32* %i wow :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40801 91177308-0d34-0410-b5e6-96231b3b80d8