diff options
author | Mike Danes <onemihaid@hotmail.com> | 2018-05-08 22:54:32 +0300 |
---|---|---|
committer | Mike Danes <onemihaid@hotmail.com> | 2018-09-16 13:27:30 +0300 |
commit | f1ca994efaec093e0f7f4b16cbce4675aa5648e3 (patch) | |
tree | b2fc70ba0284fff89ddbc544c876c5f1e7ec7ea7 /src/jit/emit.h | |
parent | dfafa6b05ff68426f34af86754b2f2b3bf6aae59 (diff) | |
download | coreclr-f1ca994efaec093e0f7f4b16cbce4675aa5648e3.tar.gz coreclr-f1ca994efaec093e0f7f4b16cbce4675aa5648e3.tar.bz2 coreclr-f1ca994efaec093e0f7f4b16cbce4675aa5648e3.zip |
Add support for 16 byte aligned constants
Diffstat (limited to 'src/jit/emit.h')
-rw-r--r-- | src/jit/emit.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/jit/emit.h b/src/jit/emit.h index 3387e6a98c..7e0250ff04 100644 --- a/src/jit/emit.h +++ b/src/jit/emit.h @@ -216,6 +216,15 @@ private: unsigned codePos; // the code position within the IG (see emitCurOffset()) }; +#ifndef LEGACY_BACKEND +enum class emitDataAlignment +{ + None, + Preferred, + Required +}; +#endif + /************************************************************************/ /* The following describes an instruction group */ /************************************************************************/ @@ -1580,7 +1589,7 @@ private: void emitSetMediumJump(instrDescJmp* id); UNATIVE_OFFSET emitSizeOfJump(instrDescJmp* jmp); UNATIVE_OFFSET emitInstCodeSz(instrDesc* id); - CORINFO_FIELD_HANDLE emitAnyConst(const void* cnsAddr, unsigned cnsSize, bool dblAlign); + CORINFO_FIELD_HANDLE emitAnyConst(const void* cnsAddr, unsigned cnsSize, emitDataAlignment alignment); CORINFO_FIELD_HANDLE emitFltOrDblConst(double constValue, emitAttr attr); regNumber emitInsBinary(instruction ins, emitAttr attr, GenTree* dst, GenTree* src); regNumber emitInsTernary(instruction ins, emitAttr attr, GenTree* dst, GenTree* src1, GenTree* src2); @@ -2036,6 +2045,7 @@ public: dataSection* dsdList; dataSection* dsdLast; UNATIVE_OFFSET dsdOffs; + bool align16; }; dataSecDsc emitConsDsc; |