diff options
author | Michelle McDaniel <adiaaida@gmail.com> | 2016-08-09 13:15:05 -0700 |
---|---|---|
committer | Michelle McDaniel <adiaaida@gmail.com> | 2016-08-11 09:53:41 -0700 |
commit | 36a2b906c008cd3693a9ab5aef7b4402addd6c74 (patch) | |
tree | 27333c6f26304490169825ae1c17484534246dc6 /src/jit/smcommon.h | |
parent | ab7d6a8df73d3d89210a778338feaa9fedf4146a (diff) | |
download | coreclr-36a2b906c008cd3693a9ab5aef7b4402addd6c74.tar.gz coreclr-36a2b906c008cd3693a9ab5aef7b4402addd6c74.tar.bz2 coreclr-36a2b906c008cd3693a9ab5aef7b4402addd6c74.zip |
Reformat jit sources with clang-tidy and format
This change is the result of running clang-tidy and clang-format on jit
sources.
Diffstat (limited to 'src/jit/smcommon.h')
-rw-r--r-- | src/jit/smcommon.h | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/src/jit/smcommon.h b/src/jit/smcommon.h index cbfa34c882..0c33e05a7b 100644 --- a/src/jit/smcommon.h +++ b/src/jit/smcommon.h @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - // // Common headers used both in smgen.exe and the JIT. // @@ -12,44 +11,40 @@ #include "smopenum.h" -#define NUM_SM_STATES 250 +#define NUM_SM_STATES 250 typedef BYTE SM_STATE_ID; static_assert_no_msg(sizeof(SM_STATE_ID) == 1); // To conserve memory, we don't want to have more than 256 states. -#define SM_STATE_ID_START 1 +#define SM_STATE_ID_START 1 -static_assert_no_msg(SM_STATE_ID_START == 1); // Make sure nobody changes it. We rely on this to map the SM_OPCODE - // to single-opcode states. For example, in GetWeightForOpcode(). +static_assert_no_msg(SM_STATE_ID_START == 1); // Make sure nobody changes it. We rely on this to map the SM_OPCODE + // to single-opcode states. For example, in GetWeightForOpcode(). struct JumpTableCell { - SM_STATE_ID srcState; - SM_STATE_ID destState; + SM_STATE_ID srcState; + SM_STATE_ID destState; }; -struct SMState +struct SMState { - bool term; // does this state terminate a code sequence? - BYTE length; // the length of currently matched opcodes - SM_STATE_ID longestTermState; // the ID of the longest matched terminate state + bool term; // does this state terminate a code sequence? + BYTE length; // the length of currently matched opcodes + SM_STATE_ID longestTermState; // the ID of the longest matched terminate state - SM_STATE_ID prevState; // previous state - SM_OPCODE opc; // opcode that leads from the previous state to current state + SM_STATE_ID prevState; // previous state + SM_OPCODE opc; // opcode that leads from the previous state to current state unsigned short jumpTableByteOffset; }; - // // Code sequences // -#define MAX_CODE_SEQUENCE_LENGTH 7 -#define CODE_SEQUENCE_END ((SM_OPCODE)(SM_COUNT+1)) - +#define MAX_CODE_SEQUENCE_LENGTH 7 +#define CODE_SEQUENCE_END ((SM_OPCODE)(SM_COUNT + 1)) #endif /* __sm_common_h__ */ - - |