[PATCH] D54224: [CodeGen] Expose some data types and accessors from StackMaps

Than McIntosh via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 16 08:51:34 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL347061: [CodeGen] Expose some data types and accessors from StackMaps (authored by thanm, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D54224?vs=173019&id=174384#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D54224

Files:
  llvm/trunk/include/llvm/CodeGen/StackMaps.h


Index: llvm/trunk/include/llvm/CodeGen/StackMaps.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/StackMaps.h
+++ llvm/trunk/include/llvm/CodeGen/StackMaps.h
@@ -236,25 +236,6 @@
     FnInfos.clear();
   }
 
-  /// Generate a stackmap record for a stackmap instruction.
-  ///
-  /// MI must be a raw STACKMAP, not a PATCHPOINT.
-  void recordStackMap(const MachineInstr &MI);
-
-  /// Generate a stackmap record for a patchpoint instruction.
-  void recordPatchPoint(const MachineInstr &MI);
-
-  /// Generate a stackmap record for a statepoint instruction.
-  void recordStatepoint(const MachineInstr &MI);
-
-  /// If there is any stack map data, create a stack map section and serialize
-  /// the map info into it. This clears the stack map data structures
-  /// afterwards.
-  void serializeToStackMapSection();
-
-private:
-  static const char *WSMP;
-
   using LocationVec = SmallVector<Location, 8>;
   using LiveOutVec = SmallVector<LiveOutReg, 8>;
   using ConstantPool = MapVector<uint64_t, uint64_t>;
@@ -283,6 +264,31 @@
   using FnInfoMap = MapVector<const MCSymbol *, FunctionInfo>;
   using CallsiteInfoList = std::vector<CallsiteInfo>;
 
+  /// Generate a stackmap record for a stackmap instruction.
+  ///
+  /// MI must be a raw STACKMAP, not a PATCHPOINT.
+  void recordStackMap(const MachineInstr &MI);
+
+  /// Generate a stackmap record for a patchpoint instruction.
+  void recordPatchPoint(const MachineInstr &MI);
+
+  /// Generate a stackmap record for a statepoint instruction.
+  void recordStatepoint(const MachineInstr &MI);
+
+  /// If there is any stack map data, create a stack map section and serialize
+  /// the map info into it. This clears the stack map data structures
+  /// afterwards.
+  void serializeToStackMapSection();
+
+  /// Get call site info.
+  CallsiteInfoList &getCSInfos() { return CSInfos; }
+
+  /// Get function info.
+  FnInfoMap &getFnInfos() { return FnInfos; }
+
+private:
+  static const char *WSMP;
+
   AsmPrinter &AP;
   CallsiteInfoList CSInfos;
   ConstantPool ConstPool;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54224.174384.patch
Type: text/x-patch
Size: 2100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181116/b27056a9/attachment-0001.bin>


More information about the llvm-commits mailing list