summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/R600ISelLowering.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-06-30 22:52:52 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-06-30 22:52:52 +0000
commite4f5e4f4d1c47f996bb22b21989c3cc32fd9a0cd (patch)
treef149f6737d4fe96604d1e16648f1161f5b8dcb35 /llvm/lib/Target/AMDGPU/R600ISelLowering.h
parent9743af6e31eb0699ded017ac1f957a4a6fe78bf6 (diff)
downloadbcm5719-llvm-e4f5e4f4d1c47f996bb22b21989c3cc32fd9a0cd.tar.gz
bcm5719-llvm-e4f5e4f4d1c47f996bb22b21989c3cc32fd9a0cd.zip
CodeGen: Use MachineInstr& in TargetLowering, NFC
This is a mechanical change to make TargetLowering API take MachineInstr& (instead of MachineInstr*), since the argument is expected to be a valid MachineInstr. In one case, changed a parameter from MachineInstr* to MachineBasicBlock::iterator, since it was used as an insertion point. As a side effect, this removes a bunch of MachineInstr* to MachineBasicBlock::iterator implicit conversions, a necessary step toward fixing PR26753. llvm-svn: 274287
Diffstat (limited to 'llvm/lib/Target/AMDGPU/R600ISelLowering.h')
-rw-r--r--llvm/lib/Target/AMDGPU/R600ISelLowering.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/R600ISelLowering.h b/llvm/lib/Target/AMDGPU/R600ISelLowering.h
index 3fbd72713e3..2fb6ee25caa 100644
--- a/llvm/lib/Target/AMDGPU/R600ISelLowering.h
+++ b/llvm/lib/Target/AMDGPU/R600ISelLowering.h
@@ -28,8 +28,9 @@ public:
const R600Subtarget *getSubtarget() const;
- MachineBasicBlock * EmitInstrWithCustomInserter(MachineInstr *MI,
- MachineBasicBlock * BB) const override;
+ MachineBasicBlock *
+ EmitInstrWithCustomInserter(MachineInstr &MI,
+ MachineBasicBlock *BB) const override;
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
void ReplaceNodeResults(SDNode * N,
OpenPOWER on IntegriCloud