Nate Begeman | 5ddb087 | 2010-05-28 01:08:32 +0000 | [diff] [blame] | 1 | //===- 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 | |
| 21 | namespace llvm { |
| 22 | |
| 23 | class NeonEmitter : public TableGenBackend { |
| 24 | RecordKeeper &Records; |
| 25 | public: |
| 26 | NeonEmitter(RecordKeeper &R) : Records(R) {} |
| 27 | |
Nate Begeman | a8979a0 | 2010-06-04 00:21:41 +0000 | [diff] [blame] | 28 | // run - Emit arm_neon.h.inc |
Nate Begeman | 5ddb087 | 2010-05-28 01:08:32 +0000 | [diff] [blame] | 29 | void run(raw_ostream &o); |
Nate Begeman | a8979a0 | 2010-06-04 00:21:41 +0000 | [diff] [blame] | 30 | |
| 31 | // runHeader - Emit all the __builtin prototypes used in arm_neon.h |
| 32 | void runHeader(raw_ostream &o); |
Nate Begeman | 5ddb087 | 2010-05-28 01:08:32 +0000 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | } // End llvm namespace |
| 36 | |
| 37 | #endif |