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

Side by Side Diff: src/IceRegList.h

Issue 1508423003: Subzero. ARM32. Introduces explicit register parameter attribute. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: New IceRegistersARM32.def file. Created 5 years 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/IceInstARM32.def ('k') | src/IceRegistersARM32.h » ('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/IceRegList.h - Register list macro defs -----*- C++ -*-===// 1 //===- subzero/src/IceRegList.h - Register list macro defs -----*- 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 /// \file 10 /// \file
11 /// \brief Defines the REGLIST*() macros used in the IceInst*.def files. 11 /// \brief Defines the REGLIST*() macros used in the IceInst*.def files.
12 /// 12 ///
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICEINSTREGLIST_H 15 #ifndef SUBZERO_SRC_ICEINSTREGLIST_H
16 #define SUBZERO_SRC_ICEINSTREGLIST_H 16 #define SUBZERO_SRC_ICEINSTREGLIST_H
17 17
18 // REGLISTn is a family of macros that we use to define register aliasing. "n" 18 // REGLISTn is a family of macros that we use to define register aliasing. "n"
19 // indicates how many register aliases are being provided to the macro. It 19 // indicates how many register aliases are being provided to the macro. It
20 // assumes the parameters are register names declared in the "ns" 20 // assumes the parameters are register names declared in the "ns"
21 // namespace/class, but with the common "Reg_" prefix removed for brevity. 21 // namespace/class, but with the common "Reg_" prefix removed for brevity.
22 #define REGLIST1(ns, r0) \ 22 #define REGLIST1(ns, r0) \
23 { ns::Reg_##r0 } 23 { ns::Reg_##r0 }
24 #define REGLIST2(ns, r0, r1) \ 24 #define REGLIST2(ns, r0, r1) \
25 { ns::Reg_##r0, ns::Reg_##r1 } 25 { ns::Reg_##r0, ns::Reg_##r1 }
26 #define REGLIST3(ns, r0, r1, r2) \ 26 #define REGLIST3(ns, r0, r1, r2) \
27 { ns::Reg_##r0, ns::Reg_##r1, ns::Reg_##r2 } 27 { ns::Reg_##r0, ns::Reg_##r1, ns::Reg_##r2 }
28 #define REGLIST4(ns, r0, r1, r2, r3) \ 28 #define REGLIST4(ns, r0, r1, r2, r3) \
29 { ns::Reg_##r0, ns::Reg_##r1, ns::Reg_##r2, ns::Reg_##r3 } 29 { ns::Reg_##r0, ns::Reg_##r1, ns::Reg_##r2, ns::Reg_##r3 }
30 #define REGLIST6(ns, r0, r1, r2, r3, r4, r5) \ 30 #define REGLIST7(ns, r0, r1, r2, r3, r4, r5, r6) \
31 { \ 31 { \
32 ns::Reg_##r0, ns::Reg_##r1, ns::Reg_##r2, ns::Reg_##r3, ns::Reg_##r4, \ 32 ns::Reg_##r0, ns::Reg_##r1, ns::Reg_##r2, ns::Reg_##r3, ns::Reg_##r4, \
33 ns::Reg_##r5 \ 33 ns::Reg_##r5, ns::Reg_##r6 \
34 } 34 }
35 35
36 #endif // SUBZERO_SRC_ICEINSTREGLIST_H 36 #endif // SUBZERO_SRC_ICEINSTREGLIST_H
OLDNEW
« no previous file with comments | « src/IceInstARM32.def ('k') | src/IceRegistersARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698