diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-01-08 01:24:27 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-01-08 01:24:27 +0000 |
commit | 55d42003368c57d3a41c5f464d39b8440050d558 (patch) | |
tree | 6e956d1dd4a8145a80d41d556acbca48ed96a3f0 /include | |
parent | c36b7069b42bece963b7e6adf020353ce990ef76 (diff) | |
download | external_llvm-55d42003368c57d3a41c5f464d39b8440050d558.zip external_llvm-55d42003368c57d3a41c5f464d39b8440050d558.tar.gz external_llvm-55d42003368c57d3a41c5f464d39b8440050d558.tar.bz2 |
Recognize inline asm 'rev /bin/bash, ' as a bswap intrinsic call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/IntrinsicLowering.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/IntrinsicLowering.h b/include/llvm/CodeGen/IntrinsicLowering.h index eefbc45..767b666 100644 --- a/include/llvm/CodeGen/IntrinsicLowering.h +++ b/include/llvm/CodeGen/IntrinsicLowering.h @@ -48,6 +48,11 @@ namespace llvm { /// be capable of handling this kind of change. /// void LowerIntrinsicCall(CallInst *CI); + + /// LowerToByteSwap - Replace a call instruction into a call to bswap + /// intrinsic. Return false if it has determined the call is not a + /// simple integer bswap. + static bool LowerToByteSwap(CallInst *CI); }; } |