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

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

Temporary check-in

File size: 1.0 KB
Line 
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
10#include <pablo/pabloAST.h>
11#include <pablo/ps_if.h>
12#include <string>
13#include <llvm/Support/raw_os_ostream.h>
14
15namespace pablo {
16    class PabloBlock;
17}
18
19class PabloPrinter {
20public:
21    using DefinedVars = pablo::If::DefinedVars;
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);
28};
29
30#endif // SHOW_H
Note: See TracBrowser for help on using the repository browser.