Path: blob/master/runtime/compiler/ras/InternalFunctions.hpp
6000 views
/*******************************************************************************1* Copyright (c) 2000, 2021 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// __ ___ __ __ ___ __ ___ ___ __23// | \ |__ |__) |__) |__ / ` /\ | |__ | \24// |__/ |___ | | \ |___ \__, /~~\ | |___ |__/25//26// This file is now deprecated and its contents are slowly27// being removed. Please do not add any more interfaces here.28//29// For more information, please see design 31411 in compjazz3031#ifndef INTERNAL_FUNCTIONS_INCL32#define INTERNAL_FUNCTIONS_INCL3334#include <stddef.h>35#include <stdint.h>36#include "env/FilePointerDecl.hpp"37#include "env/TRMemory.hpp"3839class TR_FrontEnd;40namespace TR { class Compilation; }414243class TR_InternalFunctions44{45public:46TR_ALLOC(TR_Memory::InternalFunctionsBase);4748TR_InternalFunctions(TR_FrontEnd * fe, TR_PersistentMemory *persistentMemory, TR_Memory * trMemory, TR::Compilation *comp) :49_fe(fe),50_persistentMemory(persistentMemory),51_trMemory(trMemory),52_comp(comp)53{ }5455TR_PersistentMemory * persistentMemory();5657virtual void fprintf(TR::FILE *file, const char * format, ...);5859TR_Memory * trMemory();6061TR_FrontEnd *fe() { return _fe; }6263protected:6465TR_FrontEnd * _fe;66TR_PersistentMemory * _persistentMemory;67TR::Compilation * _comp;68TR_Memory * _trMemory;69};7071#endif727374