Skip to content

Commit

Permalink
Override isILOpCodeSupported on RISC-V
Browse files Browse the repository at this point in the history
See previous commit for explanation. Same work was performed on x86.
  • Loading branch information
fjeremic committed May 26, 2021
1 parent 6966969 commit 30ee445
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions compiler/riscv/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,3 +432,14 @@ int64_t OMR::RV::CodeGenerator::getSmallestPosConstThatMustBeMaterialized()
TR_ASSERT(0, "Not Implemented on AArch64");
return 0;
}

bool OMR::RV::CodeGenerator::isILOpCodeSupported(TR::ILOpCodes o)
{
switch(o)
{
case TR::a2i:
return false;
default:
return OMR::CodeGenerator::isILOpCodeSupported(o);
}
}
2 changes: 2 additions & 0 deletions compiler/riscv/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGenerator
_returnTypeInfoInstruction = rtii;
}

static bool isILOpCodeSupported(TR::ILOpCodes);

private:

enum // flags
Expand Down

0 comments on commit 30ee445

Please sign in to comment.