diff --git a/compiler/aarch64/codegen/OMRInstruction.hpp b/compiler/aarch64/codegen/OMRInstruction.hpp index e49cbdff6c..f8d2f0ee51 100644 --- a/compiler/aarch64/codegen/OMRInstruction.hpp +++ b/compiler/aarch64/codegen/OMRInstruction.hpp @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2018, 2021 IBM Corp. and others + * Copyright (c) 2018, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this @@ -113,12 +113,6 @@ class OMR_EXTENSIBLE Instruction : public OMR::Instruction */ virtual uint8_t *generateBinaryEncoding(); - /** - * @brief Gets the opcode of the instruction - * @return opcode of the instruction - */ - TR::InstOpCode& getOpCode() {return _opcode;} - /** * @brief Answers if this instruction is a label or not * @return true if this instruction is a label, false otherwise diff --git a/compiler/arm/codegen/OMRInstruction.hpp b/compiler/arm/codegen/OMRInstruction.hpp index 79ef15e14d..dc3214c54e 100644 --- a/compiler/arm/codegen/OMRInstruction.hpp +++ b/compiler/arm/codegen/OMRInstruction.hpp @@ -86,10 +86,7 @@ class OMR_EXTENSIBLE Instruction : public OMR::Instruction virtual Kind getKind() { return IsNotExtended; } - TR::InstOpCode& getOpCode() {return _opcode;} - TR::InstOpCode::Mnemonic getOpCodeValue() {return _opcode.getOpCodeValue();} TR::InstOpCode::Mnemonic getRecordFormOpCode() {return _opcode.getRecordFormOpCodeValue();} - TR::InstOpCode::Mnemonic setOpCodeValue(TR::InstOpCode::Mnemonic op) {return _opcode.setOpCodeValue(op);} void ARMNeedsGCMap(uint32_t mask); diff --git a/compiler/p/codegen/OMRInstruction.hpp b/compiler/p/codegen/OMRInstruction.hpp index 4aecbed67e..6ece413fb1 100644 --- a/compiler/p/codegen/OMRInstruction.hpp +++ b/compiler/p/codegen/OMRInstruction.hpp @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2021 IBM Corp. and others + * Copyright (c) 2000, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this @@ -71,10 +71,7 @@ class OMR_EXTENSIBLE Instruction : public OMR::Instruction virtual int32_t estimateBinaryLength(int32_t currentEstimate); virtual uint8_t *generateBinaryEncoding(); - TR::InstOpCode& getOpCode() {return _opcode;} - TR::InstOpCode::Mnemonic getOpCodeValue() {return _opcode.getOpCodeValue();} TR::InstOpCode::Mnemonic getRecordFormOpCode() {return _opcode.getRecordFormOpCodeValue();} - TR::InstOpCode::Mnemonic setOpCodeValue(TR::InstOpCode::Mnemonic op) {return _opcode.setOpCodeValue(op);} virtual TR::Register *getTrg1Register() {return NULL;} diff --git a/compiler/riscv/codegen/OMRInstruction.hpp b/compiler/riscv/codegen/OMRInstruction.hpp index c232af1076..e9d71d9e35 100644 --- a/compiler/riscv/codegen/OMRInstruction.hpp +++ b/compiler/riscv/codegen/OMRInstruction.hpp @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2019, 2021 IBM Corp. and others + * Copyright (c) 2019, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this @@ -115,12 +115,6 @@ class OMR_EXTENSIBLE Instruction : public OMR::Instruction */ virtual uint8_t *generateBinaryEncoding(); - /** - * @brief Gets the opcode of the instruction - * @return opcode of the instruction - */ - TR::InstOpCode& getOpCode() {return _opcode;} - /** * @brief Removes this instruction from instruction list */ diff --git a/compiler/x/codegen/OMRInstruction.hpp b/compiler/x/codegen/OMRInstruction.hpp index 1d4a0401d5..ad2dd3f5b2 100644 --- a/compiler/x/codegen/OMRInstruction.hpp +++ b/compiler/x/codegen/OMRInstruction.hpp @@ -94,10 +94,6 @@ class OMR_EXTENSIBLE Instruction : public OMR::Instruction virtual char *description() { return "X86"; } virtual Kind getKind() { return IsNotExtended; } - TR::InstOpCode& getOpCode() { return _opcode; } - TR::InstOpCode::Mnemonic getOpCodeValue() { return _opcode.getOpCodeValue(); } - TR::InstOpCode::Mnemonic setOpCodeValue(TR::InstOpCode::Mnemonic op) { return _opcode.setOpCodeValue(op); } - OMR::X86::Encoding getEncodingMethod() { return _encodingMethod; } void setEncodingMethod(OMR::X86::Encoding method) { _encodingMethod = method; }