diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-03 02:02:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-03 02:02:44 +0000 |
commit | cf25024828679bc215766b52fcb7f201ddcffc37 (patch) | |
tree | 7dfdaadeec8d92c823066c20ffce02a91534b42c /clang/CodeGen/CodeGenFunction.cpp | |
parent | 35e287bed18aa2863212aee88e03fff1b22af418 (diff) | |
download | bcm5719-llvm-cf25024828679bc215766b52fcb7f201ddcffc37.tar.gz bcm5719-llvm-cf25024828679bc215766b52fcb7f201ddcffc37.zip |
Implement EmitUsualArithmeticConversions, so we can add shorts to floats and
ints to long long etc. For int to longlong, we now get:
%tmp = load i64* %F ; <i64> [#uses=1]
%tmp1 = load i32* %D ; <i32> [#uses=1]
%promote = sext i32 %tmp1 to i64 ; <i64> [#uses=1]
%tmp2 = add i64 %tmp, %promote ; <i64> [#uses=0]
llvm-svn: 39576
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions