Skip to content

Commit 326f662

Browse files
committed
Generate code
1 parent cab4338 commit 326f662

34 files changed

+112
-119
lines changed

src/libasr/pass/arr_slice.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#ifndef LFORTRAN_PASS_ARR_SLICE_H
2-
#define LFORTRAN_PASS_ARR_SLICE_H
1+
#ifndef LIBASR_PASS_ARR_SLICE_H
2+
#define LIBASR_PASS_ARR_SLICE_H
33

44
#include <libasr/asr.h>
55
#include <libasr/utils.h>
66

77
namespace LCompilers {
88

99
void pass_replace_arr_slice(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

14-
#endif // LFORTRAN_PASS_ARR_SLICE_H
14+
#endif // LIBASR_PASS_ARR_SLICE_H

src/libasr/pass/array_op.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#ifndef LFORTRAN_PASS_ARRAY_OP_H
2-
#define LFORTRAN_PASS_ARRAY_OP_H
1+
#ifndef LIBASR_PASS_ARRAY_OP_H
2+
#define LIBASR_PASS_ARRAY_OP_H
33

44
#include <libasr/asr.h>
55
#include <libasr/utils.h>
66

77
namespace LCompilers {
88

99
void pass_replace_array_op(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

14-
#endif // LFORTRAN_PASS_ARRAY_OP_H
14+
#endif // LIBASR_PASS_ARRAY_OP_H
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#ifndef LFORTRAN_PASS_CLASS_CONSTRUCTOR_H
2-
#define LFORTRAN_PASS_CLASS_CONSTRUCTOR_H
1+
#ifndef LIBASR_PASS_CLASS_CONSTRUCTOR_H
2+
#define LIBASR_PASS_CLASS_CONSTRUCTOR_H
33

44
#include <libasr/asr.h>
55
#include <libasr/utils.h>
66

77
namespace LCompilers {
88

99
void pass_replace_class_constructor(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

14-
#endif // LFORTRAN_PASS_CLASS_CONSTRUCTOR_H
14+
#endif // LIBASR_PASS_CLASS_CONSTRUCTOR_H

src/libasr/pass/dead_code_removal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
namespace LCompilers {
88

99
void pass_dead_code_removal(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

14-
#endif
14+
#endif // LIBASR_PASS_DEAD_CODE_REMOVAL_H

src/libasr/pass/div_to_mul.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace LCompilers {
88

99
void pass_replace_div_to_mul(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

src/libasr/pass/do_loops.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#ifndef LFORTRAN_PASS_DO_LOOPS_H
2-
#define LFORTRAN_PASS_DO_LOOPS_H
1+
#ifndef LIBASR_PASS_DO_LOOPS_H
2+
#define LIBASR_PASS_DO_LOOPS_H
33

44
#include <libasr/asr.h>
55
#include <libasr/utils.h>
66

77
namespace LCompilers {
88

99
void pass_replace_do_loops(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

14-
#endif // LFORTRAN_PASS_DO_LOOPS_H
14+
#endif // LIBASR_PASS_DO_LOOPS_H

src/libasr/pass/flip_sign.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace LCompilers {
88

99
void pass_replace_flip_sign(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

src/libasr/pass/fma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace LCompilers {
88

99
void pass_replace_fma(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

src/libasr/pass/for_all.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#ifndef LFORTRAN_PASS_FOR_ALL
2-
#define LFORTRAN_PASS_FOR_ALL
1+
#ifndef LIBASR_PASS_FOR_ALL_H
2+
#define LIBASR_PASS_FOR_ALL_H
33

44
#include <libasr/asr.h>
55
#include <libasr/utils.h>
66

77
namespace LCompilers {
88

9-
void pass_replace_forall(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
9+
void pass_replace_for_all(Allocator &al, ASR::TranslationUnit_t &unit,
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

14-
#endif // LFORTRAN_PASS_FOR_ALL
14+
#endif // LIBASR_PASS_FOR_ALL_H

src/libasr/pass/global_stmts.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
#ifndef LFORTRAN_PASS_GLOBAL_STMTS_H
2-
#define LFORTRAN_PASS_GLOBAL_STMTS_H
1+
#ifndef LIBASR_PASS_GLOBAL_STMTS_H
2+
#define LIBASR_PASS_GLOBAL_STMTS_H
33

44
#include <libasr/asr.h>
55
#include <libasr/utils.h>
66

77
namespace LCompilers {
88

9-
void pass_wrap_global_stmts_into_function(Allocator &al, ASR::TranslationUnit_t &unit,
10-
const LCompilers::PassOptions& pass_options);
9+
void pass_wrap_global_stmts(Allocator &al, ASR::TranslationUnit_t &unit,
10+
const PassOptions &pass_options);
1111

1212
} // namespace LCompilers
1313

14-
#endif // LFORTRAN_PASS_GLOBAL_STMTS_H
14+
#endif // LIBASR_PASS_GLOBAL_STMTS_H

0 commit comments

Comments
 (0)