GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
jit-util.cc
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2012-2018 Max Brister
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 // Author: Max Brister <max@2bass.com>
24 
25 // defines required by llvm
26 #define __STDC_LIMIT_MACROS
27 #define __STDC_CONSTANT_MACROS
28 
29 #if defined (HAVE_CONFIG_H)
30 # include "config.h"
31 #endif
32 
33 #if defined (HAVE_LLVM)
34 
35 #if defined (HAVE_LLVM_IR_FUNCTION_H)
36 # include <llvm/IR/Value.h>
37 #else
38 # include <llvm/Value.h>
39 #endif
40 
41 #include <llvm/Support/raw_os_ostream.h>
42 
43 namespace octave
44 {
45  std::ostream&
46  operator<< (std::ostream& os, const llvm::Value& v)
47  {
48  llvm::raw_os_ostream llvm_out (os);
49  v.print (llvm_out);
50  return os;
51  }
52 }
53 
54 #endif
std::ostream & operator<<(std::ostream &os, const jit_block_list &blocks)
Definition: jit-ir.cc:133
octave::stream os
Definition: file-io.cc:627