1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file is used as the registry of passes that are part of the AVR
10// backend.
11//
12//===----------------------------------------------------------------------===//
13
14// NOTE: NO INCLUDE GUARD DESIRED!
15
16#ifndef MODULE_PASS
17#define MODULE_PASS(NAME, CREATE_PASS)
18#endif
19MODULE_PASS("avr-asm-printer-begin", AVRAsmPrinterBeginPass())
20MODULE_PASS("avr-asm-printer-end", AVRAsmPrinterEndPass())
21#undef MODULE_PASS
22
23#ifndef FUNCTION_PASS
24#define FUNCTION_PASS(NAME, CREATE_PASS)
25#endif
26FUNCTION_PASS("avr-shift-expand", AVRShiftExpandPass())
27#undef FUNCTION_PASS
28
29#ifndef MACHINE_FUNCTION_PASS
30#define MACHINE_FUNCTION_PASS(NAME, CREATE_PASS)
31#endif
32MACHINE_FUNCTION_PASS("avr-asm-printer", AVRAsmPrinterPass())
33MACHINE_FUNCTION_PASS("avr-expand-pseudo", AVRExpandPseudoPass())
34MACHINE_FUNCTION_PASS("avr-frame-analyzer", AVRFrameAnalyzerPass())
35MACHINE_FUNCTION_PASS("avr-isel", AVRISelDAGToDAGPass(*this, getOptLevel()))
36#undef MACHINE_FUNCTION_PASS
37