summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/llvmtranslate/escapes-collector.hh
blob: dab93c6eeab75ced762c305fa6efc6b00f53935c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <ast/fwd.hh>
#include <llvmtranslate/fwd.hh>

namespace llvmtranslate
{

  /// Collect all escapes for every function in the ast, and store it in a map.
  /// This is used for Lambda Lifting.
  escaped_map_type collect_escapes(const ast::Ast& ast);

} // namespace llvmtranslate