1 //===- llvm/InitializeAllAsmPrinters.h - Init Asm Printers ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This header initializes all assembler printers for all configured
11 // LLVM targets, ensuring that they are registered.
13 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_INITIALIZE_ALL_ASM_PRINTERS_H
15 #define LLVM_INITIALIZE_ALL_ASM_PRINTERS_H
19 // Declare all of the target-initialization functions.
20 #define LLVM_ASM_PRINTER(TargetName) void Initialize##TargetName##AsmPrinter();
21 #include "llvm/Config/AsmPrinters.def"
24 struct InitializeAllAsmPrinters {
25 InitializeAllAsmPrinters() {
26 // Call all of the target-initialization functions.
27 #define LLVM_ASM_PRINTER(TargetName) llvm::Initialize##TargetName##AsmPrinter();
28 #include "llvm/Config/AsmPrinters.def"
30 } DoInitializeAllAsmPrinters;
32 } // end namespace llvm
34 #endif // LLVM_INITIALIZE_ALL_ASM_PRINTERS_H