• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===--- TargetBuiltins.h - Target specific builtin IDs -------------------===//
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 #ifndef LLVM_CLANG_BASIC_TARGET_BUILTINS_H
11 #define LLVM_CLANG_BASIC_TARGET_BUILTINS_H
12 
13 #include "clang/Basic/Builtins.h"
14 #undef PPC
15 
16 namespace clang {
17 
18   /// ARM builtins
19   namespace ARM {
20     enum {
21         LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
22 #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
23 #include "clang/Basic/BuiltinsARM.def"
24         LastTSBuiltin
25     };
26   }
27 
28   /// PPC builtins
29   namespace PPC {
30     enum {
31         LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
32 #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
33 #include "clang/Basic/BuiltinsPPC.def"
34         LastTSBuiltin
35     };
36   }
37 
38   /// PTX builtins
39   namespace PTX {
40     enum {
41         LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
42 #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
43 #include "clang/Basic/BuiltinsPTX.def"
44         LastTSBuiltin
45     };
46   }
47 
48 
49   /// X86 builtins
50   namespace X86 {
51     enum {
52         LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
53 #define BUILTIN(ID, TYPE, ATTRS) BI##ID,
54 #include "clang/Basic/BuiltinsX86.def"
55         LastTSBuiltin
56     };
57   }
58 
59 } // end namespace clang.
60 
61 #endif
62