AMDGPU/SI: Factor operand folding code into its own function
[oota-llvm.git] / lib / Target / WebAssembly / WebAssemblySubtarget.h
index 6f1761940930f8b3d46430cacfa85779bd246797..9b17300e497d64c981208431f63c082bb9485921 100644 (file)
@@ -61,6 +61,12 @@ public:
   const WebAssemblyTargetLowering *getTargetLowering() const override {
     return &TLInfo;
   }
+  const WebAssemblyInstrInfo *getInstrInfo() const override {
+    return &InstrInfo;
+  }
+  const WebAssemblyRegisterInfo *getRegisterInfo() const override {
+    return &getInstrInfo()->getRegisterInfo();
+  }
   const Triple &getTargetTriple() const { return TargetTriple; }
   bool enableMachineScheduler() const override;
   bool useAA() const override { return true; }