mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-10 11:41:37 +00:00
CBE support for indbr.
llvm-svn: 85311
This commit is contained in:
parent
14fadd0f45
commit
f21034d6c3
@ -282,6 +282,7 @@ namespace {
|
||||
void visitReturnInst(ReturnInst &I);
|
||||
void visitBranchInst(BranchInst &I);
|
||||
void visitSwitchInst(SwitchInst &I);
|
||||
void visitIndBrInst(IndBrInst &I);
|
||||
void visitInvokeInst(InvokeInst &I) {
|
||||
llvm_unreachable("Lowerinvoke pass didn't work!");
|
||||
}
|
||||
@ -2578,6 +2579,12 @@ void CWriter::visitSwitchInst(SwitchInst &SI) {
|
||||
Out << " }\n";
|
||||
}
|
||||
|
||||
void CWriter::visitIndBrInst(IndBrInst &IBI) {
|
||||
Out << " goto *(void*)(";
|
||||
writeOperand(IBI.getOperand(0));
|
||||
Out << ");\n";
|
||||
}
|
||||
|
||||
void CWriter::visitUnreachableInst(UnreachableInst &I) {
|
||||
Out << " /*UNREACHABLE*/;\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user