diff options
author | Michelle McDaniel <adiaaida@gmail.com> | 2016-06-24 14:10:52 -0700 |
---|---|---|
committer | Michelle McDaniel <adiaaida@gmail.com> | 2016-07-29 09:16:39 -0700 |
commit | a1fa8c14cae981369dccf2f361b01959b215ad8f (patch) | |
tree | cfbd2c5020bacd9422a64338f513350057e3cae0 /src/jit/regset.cpp | |
parent | a812669c5737a336745f42c099a1a8a6e1aafa4f (diff) | |
download | coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.gz coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.tar.bz2 coreclr-a1fa8c14cae981369dccf2f361b01959b215ad8f.zip |
Massage code for clang-format
This change starts the process of updating the jit code to make it ready
for being formatted by clang-format. Changes mostly include reflowing
comments that go past our column limit and moving comments around ifdefs
so clang-format does not modify the indentation. Additionally, some
header files are manually reformatted for pointer alignment and marked
as clang-format off so that we do not lose the current formatting.
Diffstat (limited to 'src/jit/regset.cpp')
-rw-r--r-- | src/jit/regset.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/jit/regset.cpp b/src/jit/regset.cpp index 480a4e6b77..9d31913450 100644 --- a/src/jit/regset.cpp +++ b/src/jit/regset.cpp @@ -943,7 +943,7 @@ void RegSet::rsMarkRegPairUsed(GenTreePtr tree) /* Can't mark a register pair more than once as used */ -// assert((regMask & rsMaskUsed) == 0); + // assert((regMask & rsMaskUsed) == 0); /* Mark the registers as 'used' */ @@ -1019,7 +1019,8 @@ RegSet::SpillDsc * RegSet::rsGetSpillInfo(GenTreePtr tree, /* Normally, trees are unspilled in the order of being spilled due to the post-order walking of trees during code-gen. However, this will not be true for something like a GT_ARR_ELEM node */ - + CLANG_FORMAT_COMMENT_ANCHOR; + #ifdef LEGACY_BACKEND SpillDsc* multi = rsSpillDesc[reg]; #endif // LEGACY_BACKEND @@ -1320,15 +1321,15 @@ void RegTracker::rsTrackRegLclVar(regNumber reg, unsigned var) #endif - /* Record the new value for the register. ptr var needed for - * lifetime extension - */ - #ifdef DEBUG if (compiler->verbose) printf("\t\t\t\t\t\t\tThe register %s now holds V%02u\n", compiler->compRegVarName(reg), var); #endif + /* Record the new value for the register. ptr var needed for + * lifetime extension + */ + rsRegValues[reg].rvdKind = RV_LCL_VAR; // If this is a cast of a 64 bit int, then we must have the low 32 bits. @@ -3146,8 +3147,8 @@ TempDsc * Compiler::tmpGetTemp(var_types type) } } - /* Do we need to allocate a new temp */ #ifdef DEBUG + /* Do we need to allocate a new temp */ bool isNewTemp = false; #endif // DEBUG |