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

Unified Diff: src/IceTypes.def

Issue 1427973003: Subzero: Refactor x86 register representation to actively use aliases. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Reformat Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceTypes.cpp ('k') | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTypes.def
diff --git a/src/IceTypes.def b/src/IceTypes.def
index 8db8c63b510a74cf7a7dab7319a12bbf62fe939e..81495965c8d5f2bfd58b11fa7ae497dc8e5da47a 100644
--- a/src/IceTypes.def
+++ b/src/IceTypes.def
@@ -29,23 +29,23 @@
//#define X(tag, str, is_elf64, e_machine, e_flags)
#define ICETYPE_TABLE \
- /* enum value, log_2(size), align, # elts, element type, printable */ \
- /* string (size and alignment in bytes) */ \
- X(IceType_void, -1, 0, 1, IceType_void, "void") \
- X(IceType_i1, 0, 1, 1, IceType_i1, "i1") \
- X(IceType_i8, 0, 1, 1, IceType_i8, "i8") \
- X(IceType_i16, 1, 1, 1, IceType_i16, "i16") \
- X(IceType_i32, 2, 1, 1, IceType_i32, "i32") \
- X(IceType_i64, 3, 1, 1, IceType_i64, "i64") \
- X(IceType_f32, 2, 4, 1, IceType_f32, "float") \
- X(IceType_f64, 3, 8, 1, IceType_f64, "double") \
- X(IceType_v4i1, 4, 1, 4, IceType_i1, "<4 x i1>") \
- X(IceType_v8i1, 4, 1, 8, IceType_i1, "<8 x i1>") \
- X(IceType_v16i1, 4, 1, 16, IceType_i1, "<16 x i1>") \
- X(IceType_v16i8, 4, 1, 16, IceType_i8, "<16 x i8>") \
- X(IceType_v8i16, 4, 2, 8, IceType_i16, "<8 x i16>") \
- X(IceType_v4i32, 4, 4, 4, IceType_i32, "<4 x i32>") \
- X(IceType_v4f32, 4, 4, 4, IceType_f32, "<4 x float>") \
+ /* enum value, log_2(size), align, # elts, element type, */ \
+ /* printable string (size and alignment in bytes) */ \
+ X(void, -1, 0, 1, void, "void") \
+ X(i1, 0, 1, 1, i1, "i1") \
+ X(i8, 0, 1, 1, i8, "i8") \
+ X(i16, 1, 1, 1, i16, "i16") \
+ X(i32, 2, 1, 1, i32, "i32") \
+ X(i64, 3, 1, 1, i64, "i64") \
+ X(f32, 2, 4, 1, f32, "float") \
+ X(f64, 3, 8, 1, f64, "double") \
+ X(v4i1, 4, 1, 4, i1, "<4 x i1>") \
+ X(v8i1, 4, 1, 8, i1, "<8 x i1>") \
+ X(v16i1, 4, 1, 16, i1, "<16 x i1>") \
+ X(v16i8, 4, 1, 16, i8, "<16 x i8>") \
+ X(v8i16, 4, 2, 8, i16, "<8 x i16>") \
+ X(v4i32, 4, 4, 4, i32, "<4 x i32>") \
+ X(v4f32, 4, 4, 4, f32, "<4 x float>") \
//#define X(tag, sizeLog2, align, elts, elty, str)
// Dictionary:
@@ -58,22 +58,22 @@
// CR - Result type of compare instruction for argument type
// (IceType_void if disallowed)
#define ICETYPE_PROPS_TABLE \
- /* Enum Value V I F IA LS P CR */ \
- X(IceType_void, 0, 0, 0, 0, 0, 0, IceType_void) \
- X(IceType_i1, 0, 1, 0, 0, 0, 0, IceType_i1) \
- X(IceType_i8, 0, 1, 0, 1, 1, 0, IceType_i1) \
- X(IceType_i16, 0, 1, 0, 1, 1, 0, IceType_i1) \
- X(IceType_i32, 0, 1, 0, 1, 1, 1, IceType_i1) \
- X(IceType_i64, 0, 1, 0, 1, 1, 1, IceType_i1) \
- X(IceType_f32, 0, 0, 1, 0, 1, 1, IceType_i1) \
- X(IceType_f64, 0, 0, 1, 0, 1, 1, IceType_i1) \
- X(IceType_v4i1, 1, 1, 0, 0, 0, 1, IceType_v4i1) \
- X(IceType_v8i1, 1, 1, 0, 0, 0, 1, IceType_v8i1) \
- X(IceType_v16i1, 1, 1, 0, 0, 0, 1, IceType_v16i1) \
- X(IceType_v16i8, 1, 1, 0, 1, 1, 1, IceType_v16i1) \
- X(IceType_v8i16, 1, 1, 0, 1, 1, 1, IceType_v8i1) \
- X(IceType_v4i32, 1, 1, 0, 1, 1, 1, IceType_v4i1) \
- X(IceType_v4f32, 1, 0, 1, 0, 1, 1, IceType_v4i1) \
+ /* Enum Value V I F IA LS P CR */ \
+ X(void, 0, 0, 0, 0, 0, 0, void) \
+ X(i1, 0, 1, 0, 0, 0, 0, i1) \
+ X(i8, 0, 1, 0, 1, 1, 0, i1) \
+ X(i16, 0, 1, 0, 1, 1, 0, i1) \
+ X(i32, 0, 1, 0, 1, 1, 1, i1) \
+ X(i64, 0, 1, 0, 1, 1, 1, i1) \
+ X(f32, 0, 0, 1, 0, 1, 1, i1) \
+ X(f64, 0, 0, 1, 0, 1, 1, i1) \
+ X(v4i1, 1, 1, 0, 0, 0, 1, v4i1) \
+ X(v8i1, 1, 1, 0, 0, 0, 1, v8i1) \
+ X(v16i1, 1, 1, 0, 0, 0, 1, v16i1) \
+ X(v16i8, 1, 1, 0, 1, 1, 1, v16i1) \
+ X(v8i16, 1, 1, 0, 1, 1, 1, v8i1) \
+ X(v4i32, 1, 1, 0, 1, 1, 1, v4i1) \
+ X(v4f32, 1, 0, 1, 0, 1, 1, v4i1) \
//#define X(tag, IsVec, IsInt, IsFloat, IsIntArith, IsLoadStore, IsParam, \
// CompareResult)
« no previous file with comments | « src/IceTypes.cpp ('k') | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698