Path: blob/master/runtime/compiler/il/J9IL.hpp
6000 views
/*******************************************************************************1* Copyright (c) 2000, 2020 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 J9_IL_INCL23#define J9_IL_INCL2425/*26* The following #define and typedef must appear before any #includes in this file27*/28#ifndef J9_IL_CONNECTOR29#define J9_IL_CONNECTOR30namespace J9 { class IL; }31namespace J9 { typedef J9::IL ILConnector; }32#endif3334#include "il/OMRIL.hpp"3536#include "infra/Annotations.hpp"37#include "il/DataTypes.hpp"38#include "il/ILOpCodes.hpp"3940namespace J941{4243class OMR_EXTENSIBLE IL : public OMR::ILConnector44{4546public:4748static TR::ILOpCodes opCodesForConst[];49static TR::ILOpCodes opCodesForDirectLoad[];50static TR::ILOpCodes opCodesForDirectStore[];51static TR::ILOpCodes opCodesForIndirectLoad[];52static TR::ILOpCodes opCodesForIndirectStore[];53static TR::ILOpCodes opCodesForIndirectArrayLoad[];54static TR::ILOpCodes opCodesForIndirectArrayStore[];55static TR::ILOpCodes opCodesForRegisterLoad[];56static TR::ILOpCodes opCodesForRegisterStore[];57static TR::ILOpCodes opCodesForCompareEquals[];58static TR::ILOpCodes opCodesForCompareNotEquals[];5960TR::ILOpCodes opCodeForCorrespondingIndirectLoad(TR::ILOpCodes loadOpCode);61TR::ILOpCodes opCodeForCorrespondingIndirectStore(TR::ILOpCodes storeOpCode);62TR::ILOpCodes opCodeForCorrespondingDirectLoad(TR::ILOpCodes loadOpCode);63TR::ILOpCodes opCodeForCorrespondingDirectStore(TR::ILOpCodes storeOpCode);6465TR::ILOpCodes opCodeForConst(TR::DataType dt);66TR::ILOpCodes opCodeForDirectLoad(TR::DataType dt);67TR::ILOpCodes opCodeForDirectReadBarrier(TR::DataType dt);68TR::ILOpCodes opCodeForDirectStore(TR::DataType dt);69TR::ILOpCodes opCodeForDirectWriteBarrier(TR::DataType dt);70TR::ILOpCodes opCodeForIndirectLoad(TR::DataType dt);71TR::ILOpCodes opCodeForIndirectReadBarrier(TR::DataType dt);72TR::ILOpCodes opCodeForIndirectStore(TR::DataType dt);73TR::ILOpCodes opCodeForIndirectWriteBarrier(TR::DataType dt);74TR::ILOpCodes opCodeForIndirectArrayLoad(TR::DataType dt);75TR::ILOpCodes opCodeForIndirectArrayStore(TR::DataType dt);76TR::ILOpCodes opCodeForRegisterLoad(TR::DataType dt);77TR::ILOpCodes opCodeForRegisterStore(TR::DataType dt);78TR::ILOpCodes opCodeForCompareEquals(TR::DataType dt);79TR::ILOpCodes opCodeForCompareNotEquals(TR::DataType dt);8081};8283}8485#endif868788