summaryrefslogtreecommitdiff
path: root/tiger-compiler/src/escapes/libescapes.hh
blob: 2d3dd732cca493b57f3a6470f415edd4bec7c1a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 ** \file escapes/libescapes.hh
 ** \brief Declare functions and variables exported by escapes module.
 */

#pragma once

#include <ast/fwd.hh>
#include <misc/error.hh>

/// Computing escape and static link related information.
namespace escapes
{
  /// Compute the escaping variables.
  void escapes_compute(ast::Ast& tree);

  /// This boolean is used to know whether escape pass
  /// was made
  /// FIXME: this is a dirty fix it should be replaced with a
  /// new implementation of tasks
  extern bool escaped;

} // namespace escapes