source: icGREP/icgrep-devel/icgrep/pablo/printer_pablos.h @ 4766

Last change on this file since 4766 was 4611, checked in by nmedfort, 4 years ago

Temporary check-in

File size: 1.0 KB
RevLine 
[3850]1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef SHOW_H
8#define SHOW_H
9
[4244]10#include <pablo/pabloAST.h>
[4518]11#include <pablo/ps_if.h>
[3850]12#include <string>
[4567]13#include <llvm/Support/raw_os_ostream.h>
[3850]14
[4206]15namespace pablo {
[4220]16    class PabloBlock;
[4206]17}
18
[4276]19class PabloPrinter {
[3850]20public:
[4611]21    using DefinedVars = pablo::If::DefinedVars;
[4567]22    static void print(const pablo::PabloBlock & block, llvm::raw_ostream & strm);
23    static void print(const pablo::StatementList & stmts, llvm::raw_ostream & strm);
24    static void print(const pablo::StatementList & stmts, std::string indent, llvm::raw_ostream & strm);
25    static void print_vars(const DefinedVars & vars, std::string indent, llvm::raw_ostream & strm);
26    static void print(const pablo::PabloAST * expr, llvm::raw_ostream & strm);
27    static void print(const pablo::Statement *stmt, std::string indent, llvm::raw_ostream & strm);
[3850]28};
29
30#endif // SHOW_H
Note: See TracBrowser for help on using the repository browser.