[llvm] r266024 - [MachineIRBuilder] Expose the insertion point in the public API.

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 17:07:15 PDT 2016


Author: qcolombet
Date: Mon Apr 11 19:07:14 2016
New Revision: 266024

URL: http://llvm.org/viewvc/llvm-project?rev=266024&view=rev
Log:
[MachineIRBuilder] Expose the insertion point in the public API.

It may be convenient to know where we are about to insert some code, for
instance to save and then restore this insertion.

Modified:
    llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h

Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h?rev=266024&r1=266023&r2=266024&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h Mon Apr 11 19:07:14 2016
@@ -50,9 +50,6 @@ class MachineIRBuilder {
     return *TII;
   }
 
-  /// Current insertion point for new instructions.
-  MachineBasicBlock::iterator getInsertPt();
-
 public:
   /// Getter for the function we currently build.
   MachineFunction &getMF() {
@@ -66,6 +63,9 @@ public:
     return *MBB;
   }
 
+  /// Current insertion point for new instructions.
+  MachineBasicBlock::iterator getInsertPt();
+
   /// Setters for the insertion point.
   /// @{
   /// Set the MachineFunction where to build instructions.




More information about the llvm-commits mailing list