Skip to content

Commit

Permalink
Revert "[RISC-V] Added designated output instruction emitters (dotnet…
Browse files Browse the repository at this point in the history
…#96741)"

This reverts commit 77fd98c.
  • Loading branch information
Bajtazar committed Feb 6, 2024
1 parent 575b137 commit ecc044d
Show file tree
Hide file tree
Showing 4 changed files with 643 additions and 1,032 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/jit/emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void emitLclVarAddr::initLclVarAddr(int varNum, unsigned offset)
}

// Returns the variable to access. Note that it returns a negative number for compiler spill temps.
int emitLclVarAddr::lvaVarNum() const
int emitLclVarAddr::lvaVarNum()
{
switch (_lvaTag)
{
Expand All @@ -721,7 +721,7 @@ int emitLclVarAddr::lvaVarNum() const
}
}

unsigned emitLclVarAddr::lvaOffset() const // returns the offset into the variable to access
unsigned emitLclVarAddr::lvaOffset() // returns the offset into the variable to access
{
switch (_lvaTag)
{
Expand Down Expand Up @@ -9777,7 +9777,7 @@ void emitter::emitRemoveLastInstruction()
* emitGetInsSC: Get the instruction's constant value.
*/

cnsval_ssize_t emitter::emitGetInsSC(const instrDesc* id) const
cnsval_ssize_t emitter::emitGetInsSC(instrDesc* id)
{
#ifdef TARGET_ARM // should it be TARGET_ARMARCH? Why do we need this? Note that on ARM64 we store scaled immediates
// for some formats
Expand Down
7 changes: 3 additions & 4 deletions src/coreclr/jit/emit.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,8 @@ struct emitLclVarAddr
// Constructor
void initLclVarAddr(int varNum, unsigned offset);

int lvaVarNum() const; // Returns the variable to access. Note that it returns a negative number for compiler spill
// temps.
unsigned lvaOffset() const; // returns the offset into the variable to access
int lvaVarNum(); // Returns the variable to access. Note that it returns a negative number for compiler spill temps.
unsigned lvaOffset(); // returns the offset into the variable to access

// This struct should be 32 bits in size for the release build.
// We have this constraint because this type is used in a union
Expand Down Expand Up @@ -2226,7 +2225,7 @@ class emitter
static const IS_INFO emitGetSchedInfo(insFormat f);
#endif // TARGET_XARCH

cnsval_ssize_t emitGetInsSC(const instrDesc* id) const;
cnsval_ssize_t emitGetInsSC(instrDesc* id);
unsigned emitInsCount;

/************************************************************************/
Expand Down
Loading

0 comments on commit ecc044d

Please sign in to comment.