diff options
author | Duncan Sands <baldrick@free.fr> | 2009-10-13 21:04:12 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-10-13 21:04:12 +0000 |
commit | 18a956cb4ada28d85a59f3a2e26af3b7e4a7185b (patch) | |
tree | 88564c7da906c937f886dc737d3900ae04a0dd15 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 8523d20af3815a15574d0cbe26344d9f84438613 (diff) | |
download | bcm5719-llvm-18a956cb4ada28d85a59f3a2e26af3b7e4a7185b.tar.gz bcm5719-llvm-18a956cb4ada28d85a59f3a2e26af3b7e4a7185b.zip |
Introduce new convenience methods for sign extending or
truncating an SDValue (depending on whether the target
type is bigger or smaller than the value's type); or zero
extending or truncating it. Use it in a few places (this
seems to be a popular operation, but I only modified cases
of it in SelectionDAGBuild). In particular, the eh_selector
lowering was doing this wrong due to a repeated rather than
inverted test, fixed with this change.
llvm-svn: 84027
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions