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 XCore
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("xcore-asm-printer-begin", XCoreAsmPrinterBeginPass())
20MODULE_PASS("xcore-asm-printer-end", XCoreAsmPrinterEndPass())
21MODULE_PASS("xcore-lower-thread-local", XCoreLowerThreadLocalPass())
22#undef MODULE_PASS
23
24#ifndef MACHINE_FUNCTION_PASS
25#define MACHINE_FUNCTION_PASS(NAME, CREATE_PASS)
26#endif
27MACHINE_FUNCTION_PASS("xcore-asm-printer", XCoreAsmPrinterPass())
28MACHINE_FUNCTION_PASS("xcore-frame-to-args-offset-elimination",
29 XCoreFrameToArgsOffsetEliminationPass())
30MACHINE_FUNCTION_PASS("xcore-isel", XCoreISelDAGToDAGPass(*this, getOptLevel()))
31#undef MACHINE_FUNCTION_PASS
32