[llvm] [Backend] Add clearSubtargetMap API for TargetMachine. (PR #112383)

weiwei chen via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 07:09:20 PST 2024


================
@@ -448,6 +448,9 @@ class LLVMTargetMachine : public TargetMachine {
 
   void initAsmInfo();
 
+  /// Reset internal state.
+  virtual void reset() {};
----------------
weiweichen wrote:

This is a good point! Trying to balance all the review comments I got and I think I'll remove the implementation from the backend that I don't particularly care about and leave them with the default implementation here as a no-op and can always overload with specific implementations should the need arises in the future.

https://github.com/llvm/llvm-project/pull/112383


More information about the llvm-commits mailing list