Path: blob/master/runtime/compiler/z/codegen/Instruction.hpp
6004 views
/*******************************************************************************1* Copyright (c) 2000, 2016 IBM Corp. and others2*3* This program and the accompanying materials are made available under4* the terms of the Eclipse Public License 2.0 which accompanies this5* distribution and is available at https://www.eclipse.org/legal/epl-2.0/6* or the Apache License, Version 2.0 which accompanies this distribution and7* is available at https://www.apache.org/licenses/LICENSE-2.0.8*9* This Source Code may also be made available under the following10* Secondary Licenses when the conditions for such availability set11* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12* General Public License, version 2 with the GNU Classpath13* Exception [1] and GNU General Public License, version 2 with the14* OpenJDK Assembly Exception [2].15*16* [1] https://www.gnu.org/software/classpath/license.html17* [2] http://openjdk.java.net/legal/assembly-exception.html18*19* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception20*******************************************************************************/2122#ifndef TR_INSTRUCTION_INCL23#define TR_INSTRUCTION_INCL2425#include "codegen/J9Instruction.hpp"2627namespace TR28{29class Instruction;3031class OMR_EXTENSIBLE Instruction : public J9::InstructionConnector32{33public:3435/*36* Generic constructors37*/38Instruction(TR::InstOpCode::Mnemonic op,39TR::Node *n,40TR::CodeGenerator *cg) :41J9::InstructionConnector(cg, op, n) {}4243Instruction(TR::InstOpCode::Mnemonic op,44TR::Node *n,45TR::Instruction *precedingInstruction,46TR::CodeGenerator *cg):47J9::InstructionConnector(cg, precedingInstruction, op, n) {}4849/*50* Z specific constructors, need to call initializer to perform proper construction51*/52inline Instruction(TR::Instruction *precedingInstruction,53TR::InstOpCode::Mnemonic op,54TR::RegisterDependencyConditions *cond,55TR::CodeGenerator *cg);5657inline Instruction(TR::InstOpCode::Mnemonic op,58TR::Node *n,59TR::RegisterDependencyConditions *cond,60TR::CodeGenerator *cg);616263inline Instruction(TR::InstOpCode::Mnemonic op,64TR::Node *n,65TR::RegisterDependencyConditions * cond,66TR::Instruction *precedingInstruction,67TR::CodeGenerator *cg);6869};7071}7273#include "codegen/J9Instruction_inlines.hpp"7475TR::Instruction::Instruction(TR::Instruction *precedingInstruction,76TR::InstOpCode::Mnemonic op,77TR::RegisterDependencyConditions *cond,78TR::CodeGenerator *cg) :79J9::InstructionConnector(cg, precedingInstruction, op) { self()->initialize(precedingInstruction, true, cond, false); }8081TR::Instruction::Instruction(TR::InstOpCode::Mnemonic op,82TR::Node *n,83TR::RegisterDependencyConditions *cond,84TR::CodeGenerator *cg) :85J9::InstructionConnector(cg, op, n) { self()->initialize(NULL, false, cond, true); }868788TR::Instruction::Instruction(TR::InstOpCode::Mnemonic op,89TR::Node *n,90TR::RegisterDependencyConditions * cond,91TR::Instruction *precedingInstruction,92TR::CodeGenerator *cg) :93J9::InstructionConnector(cg, precedingInstruction, op, n) { self()->initialize(precedingInstruction, true, cond, true); }949596#endif /* TR_INSTRUCTION_INCL */979899