blob: 133531d5e73813e68049e1caa5e15ef2f02c05b2 [file] [log] [blame]
Nate Begeman5ddb0872010-05-28 01:08:32 +00001//===- NeonEmitter.h - Generate arm_neon.h for use with clang ---*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This tablegen backend is responsible for emitting arm_neon.h, which includes
11// a declaration and definition of each function specified by the ARM NEON
12// compiler interface. See ARM document DUI0348B.
13//
14//===----------------------------------------------------------------------===//
15
16#ifndef NEON_EMITTER_H
17#define NEON_EMITTER_H
18
19#include "TableGenBackend.h"
20
21namespace llvm {
22
23 class NeonEmitter : public TableGenBackend {
24 RecordKeeper &Records;
25 public:
26 NeonEmitter(RecordKeeper &R) : Records(R) {}
27
Nate Begemana8979a02010-06-04 00:21:41 +000028 // run - Emit arm_neon.h.inc
Nate Begeman5ddb0872010-05-28 01:08:32 +000029 void run(raw_ostream &o);
Nate Begemana8979a02010-06-04 00:21:41 +000030
31 // runHeader - Emit all the __builtin prototypes used in arm_neon.h
32 void runHeader(raw_ostream &o);
Nate Begeman5ddb0872010-05-28 01:08:32 +000033 };
34
35} // End llvm namespace
36
37#endif