Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/c1/c1_CFGPrinter.hpp
32285 views
/*1* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef SHARE_VM_C1_C1_CFGPRINTER_HPP25#define SHARE_VM_C1_C1_CFGPRINTER_HPP2627#include "c1/c1_Compilation.hpp"28#include "c1/c1_Instruction.hpp"2930#ifndef PRODUCT3132// This is a utility class used for recording the results of a33// compilation for later analysis.3435class CFGPrinterOutput;36class IntervalList;3738class CFGPrinter : public AllStatic {39private:40static CFGPrinterOutput* _output;41public:42static CFGPrinterOutput* output() { assert(_output != NULL, ""); return _output; }434445static void print_compilation(Compilation* compilation);46static void print_cfg(BlockList* blocks, const char* name, bool do_print_HIR, bool do_print_LIR);47static void print_cfg(IR* blocks, const char* name, bool do_print_HIR, bool do_print_LIR);48static void print_intervals(IntervalList* intervals, const char* name);49};5051#endif5253#endif // SHARE_VM_C1_C1_CFGPRINTER_HPP545556