Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/IceTypes.def

Issue 1559243002: Suzero. X8664. NaCl Sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes filetype=asm; addresses comments. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | tests_lit/assembler/x86/sandboxing.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceTypes.def - X-macros for ICE types --------*- C++ -*-===// 1 //===- subzero/src/IceTypes.def - X-macros for ICE types --------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file defines properties of ICE primitive types in the form of x-macros. 10 // This file defines properties of ICE primitive types in the form of x-macros.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef SUBZERO_SRC_ICETYPES_DEF 14 #ifndef SUBZERO_SRC_ICETYPES_DEF
15 #define SUBZERO_SRC_ICETYPES_DEF 15 #define SUBZERO_SRC_ICETYPES_DEF
16 16
17 // Attributes of each target architecture. 17 // Attributes of each target architecture.
18 // NOTE on is_elf64 -- At some point NaCl would like to use ELF32 for all ILP32 18 // NOTES on is_elf64:
19 // sandboxes, but for now the 64-bit architectures use ELF64: 19 // 1- At some point NaCl would like to use ELF32 for all ILP32 sandboxes, but
20 // https://code.google.com/p/nativeclient/issues/detail?id=349 TODO: Whoever 20 // for now the 64-bit architectures use ELF64:
21 // adds AArch64 will need to set ABI e_flags. 21 // https://code.google.com/p/nativeclient/issues/detail?id=349
22 //
23 // 2- native code is always emitted as ELF32.
24 //
25 // TODO(jpp): set ABI e_flags for AArch64.
22 #define TARGETARCH_TABLE \ 26 #define TARGETARCH_TABLE \
23 /* enum value, printable string, is_elf64, e_machine, e_flags */ \ 27 /* enum value, printable string, is_elf64, e_machine, e_flags */ \
24 X(Target_X8632, "x86-32", false, EM_386, 0) \ 28 X(Target_X8632, "x86-32", false, EM_386, 0) \
25 X(Target_X8664, "x86-64", false, EM_X86_64, 0) \ 29 X(Target_X8664, "x86-64", true, EM_X86_64, 0) \
26 X(Target_ARM32, "arm32", false, EM_ARM, EF_ARM_EABI_VER5) \ 30 X(Target_ARM32, "arm32", false, EM_ARM, EF_ARM_EABI_VER5) \
27 X(Target_ARM64, "arm64", true, EM_AARCH64, 0) \ 31 X(Target_ARM64, "arm64", true, EM_AARCH64, 0) \
28 X(Target_MIPS32,"mips32", false, EM_MIPS, 0) \ 32 X(Target_MIPS32,"mips32", false, EM_MIPS, 0) \
29 //#define X(tag, str, is_elf64, e_machine, e_flags) 33 //#define X(tag, str, is_elf64, e_machine, e_flags)
30 34
31 #define ICETYPE_TABLE \ 35 #define ICETYPE_TABLE \
32 /* enum value, log_2(size), align, # elts, element type, */ \ 36 /* enum value, log_2(size), align, # elts, element type, */ \
33 /* printable string (size and alignment in bytes) */ \ 37 /* printable string (size and alignment in bytes) */ \
34 X(void, -1, 0, 1, void, "void") \ 38 X(void, -1, 0, 1, void, "void") \
35 X(i1, 0, 1, 1, i1, "i1") \ 39 X(i1, 0, 1, 1, i1, "i1") \
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 X(v8i1, 1, 1, 0, 0, 0, 1, v8i1) \ 75 X(v8i1, 1, 1, 0, 0, 0, 1, v8i1) \
72 X(v16i1, 1, 1, 0, 0, 0, 1, v16i1) \ 76 X(v16i1, 1, 1, 0, 0, 0, 1, v16i1) \
73 X(v16i8, 1, 1, 0, 1, 1, 1, v16i1) \ 77 X(v16i8, 1, 1, 0, 1, 1, 1, v16i1) \
74 X(v8i16, 1, 1, 0, 1, 1, 1, v8i1) \ 78 X(v8i16, 1, 1, 0, 1, 1, 1, v8i1) \
75 X(v4i32, 1, 1, 0, 1, 1, 1, v4i1) \ 79 X(v4i32, 1, 1, 0, 1, 1, 1, v4i1) \
76 X(v4f32, 1, 0, 1, 0, 1, 1, v4i1) \ 80 X(v4f32, 1, 0, 1, 0, 1, 1, v4i1) \
77 //#define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, IsParam, \ 81 //#define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, IsParam, \
78 // CompareResult) 82 // CompareResult)
79 83
80 #endif // SUBZERO_SRC_ICETYPES_DEF 84 #endif // SUBZERO_SRC_ICETYPES_DEF
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | tests_lit/assembler/x86/sandboxing.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698