From 6c73c6cec6d63fe22d4fa39f744f32afb2b7c140 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 15 Jun 2023 17:33:11 +0200 Subject: [PATCH] nv50/ir: use override Part-of: --- src/nouveau/codegen/nv50_ir_lowering_gm107.h | 6 +++--- src/nouveau/codegen/nv50_ir_lowering_nvc0.h | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/nouveau/codegen/nv50_ir_lowering_gm107.h b/src/nouveau/codegen/nv50_ir_lowering_gm107.h index 1c3b32e4692..dd281e439bc 100644 --- a/src/nouveau/codegen/nv50_ir_lowering_gm107.h +++ b/src/nouveau/codegen/nv50_ir_lowering_gm107.h @@ -7,9 +7,9 @@ class GM107LoweringPass : public NVC0LoweringPass public: GM107LoweringPass(Program *p) : NVC0LoweringPass(p) {} private: - virtual bool visit(Instruction *); + bool visit(Instruction *) override; - virtual bool handleManualTXD(TexInstruction *); + bool handleManualTXD(TexInstruction *) override; bool handleDFDX(Instruction *); bool handlePFETCH(Instruction *); bool handlePOPCNT(Instruction *); @@ -19,7 +19,7 @@ private: class GM107LegalizeSSA : public NVC0LegalizeSSA { private: - virtual bool visit(Instruction *); + bool visit(Instruction *) override; protected: void handlePFETCH(Instruction *); diff --git a/src/nouveau/codegen/nv50_ir_lowering_nvc0.h b/src/nouveau/codegen/nv50_ir_lowering_nvc0.h index 4df8a7ca667..f9cc1f52e9b 100644 --- a/src/nouveau/codegen/nv50_ir_lowering_nvc0.h +++ b/src/nouveau/codegen/nv50_ir_lowering_nvc0.h @@ -57,8 +57,8 @@ namespace nv50_ir { class NVC0LegalizeSSA : public Pass { private: - virtual bool visit(BasicBlock *); - virtual bool visit(Function *); + bool visit(BasicBlock *) override; + bool visit(Function *) override; // we want to insert calls to the builtin library only after optimization void handleDIV(Instruction *); // integer division, modulus @@ -81,8 +81,8 @@ public: NVC0LegalizePostRA(const Program *); private: - virtual bool visit(Function *); - virtual bool visit(BasicBlock *); + bool visit(Function *) override; + bool visit(BasicBlock *) override; void replaceCvt(Instruction *); void replaceZero(Instruction *); @@ -155,11 +155,11 @@ protected: void checkPredicate(Instruction *); Value *loadMsAdjInfo32(TexInstruction::Target targ, uint32_t index, int slot, Value *ind, bool bindless); - virtual bool visit(Instruction *); + bool visit(Instruction *) override; private: - virtual bool visit(Function *); - virtual bool visit(BasicBlock *); + bool visit(Function *) override; + bool visit(BasicBlock *) override; void readTessCoord(LValue *dst, int c);