diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-10-27 19:13:16 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-10-27 19:13:16 +0000 |
| commit | 3ed871fe626408591fc9dcbccd7d61696ad72335 (patch) | |
| tree | c7091596f0ce2ecf767758f356c2f1725cc05e1d /llvm/lib/CodeGen | |
| parent | df5dcdaa10f556693a58e1956468b1113b9c79fb (diff) | |
| download | bcm5719-llvm-3ed871fe626408591fc9dcbccd7d61696ad72335.tar.gz bcm5719-llvm-3ed871fe626408591fc9dcbccd7d61696ad72335.zip | |
add enough support for indirect branch for the feature test to pass
(assembler,asmprinter, bc reader+writer) and document it. Codegen
currently aborts on it.
llvm-svn: 85274
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 5 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index b220d55f548..73c9c5f57ec 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -2131,6 +2131,11 @@ void SelectionDAGLowering::visitSwitch(SwitchInst &SI) { } } +void SelectionDAGLowering::visitIndBr(IndBrInst &I) { + fprintf(stderr, "indbr codegen not implemented yet"); + abort(); +} + void SelectionDAGLowering::visitFSub(User &I) { // -0.0 - X --> fneg diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h index 74705514de6..9aca707ecfc 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.h @@ -49,6 +49,7 @@ class GetElementPtrInst; class GCFunctionInfo; class ICmpInst; class IntToPtrInst; +class IndBrInst; class InvokeInst; class InsertElementInst; class InsertValueInst; @@ -448,6 +449,7 @@ private: void visitRet(ReturnInst &I); void visitBr(BranchInst &I); void visitSwitch(SwitchInst &I); + void visitIndBr(IndBrInst &I); void visitUnreachable(UnreachableInst &I) { /* noop */ } // Helpers for visitSwitch |

