| Index: src/IceTargetLowering.cpp
|
| diff --git a/src/IceTargetLowering.cpp b/src/IceTargetLowering.cpp
|
| index 671bab029d0d30871a55e94f9a27052f27f36a9d..417ad2f11d3dfa86505e0c657307a879a64913e3 100644
|
| --- a/src/IceTargetLowering.cpp
|
| +++ b/src/IceTargetLowering.cpp
|
| @@ -211,6 +211,20 @@ void TargetLowering::lower() {
|
| Context.advanceNext();
|
| }
|
|
|
| +void TargetLowering::lowerInst(CfgNode *Node, InstList::iterator Next,
|
| + InstHighLevel *Instr) {
|
| + // TODO(stichnot): Consider modifying the design/implementation to avoid
|
| + // multiple init() calls when using lowerInst() to lower several instructions
|
| + // in the same node.
|
| + Context.init(Node);
|
| + Context.setNext(Next);
|
| + Context.insert(Instr);
|
| + --Next;
|
| + assert(&*Next == Instr);
|
| + Context.setCur(Next);
|
| + lower();
|
| +}
|
| +
|
| void TargetLowering::lowerOther(const Inst *Instr) {
|
| (void)Instr;
|
| Func->setError("Can't lower unsupported instruction type");
|
|
|