diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-05-09 20:37:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-05-09 20:37:29 +0000 |
| commit | 6c6a39a7b8a7df63d840fdddde3e51d4a9f9cd05 (patch) | |
| tree | 66a95450f0a56eef006268b21c7106fba983d6f1 /llvm/lib | |
| parent | ba45e6c43286bc4bac01eaed7f52e90b6a8babd8 (diff) | |
| download | bcm5719-llvm-6c6a39a7b8a7df63d840fdddde3e51d4a9f9cd05.tar.gz bcm5719-llvm-6c6a39a7b8a7df63d840fdddde3e51d4a9f9cd05.zip | |
legalize readio/writeio into load/stores, fixing CodeGen/X86/io.llx with
the pattern isel.
llvm-svn: 21828
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelPattern.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelPattern.cpp b/llvm/lib/Target/X86/X86ISelPattern.cpp index d4b2b1a99e8..584d4af3ef0 100644 --- a/llvm/lib/Target/X86/X86ISelPattern.cpp +++ b/llvm/lib/Target/X86/X86ISelPattern.cpp @@ -70,6 +70,15 @@ namespace { setOperationAction(ISD::CTTZ , MVT::i32 , Expand); setOperationAction(ISD::CTLZ , MVT::i32 , Expand); + setOperationAction(ISD::READIO , MVT::i1 , Expand); + setOperationAction(ISD::READIO , MVT::i8 , Expand); + setOperationAction(ISD::READIO , MVT::i16 , Expand); + setOperationAction(ISD::READIO , MVT::i32 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i1 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i8 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i16 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i32 , Expand); + if (!UnsafeFPMath) { setOperationAction(ISD::FSIN , MVT::f64 , Expand); setOperationAction(ISD::FCOS , MVT::f64 , Expand); |

