Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/coreclr/jit/codegenwasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ void CodeGen::genCodeForTreeNode(GenTree* treeNode)

default:
#ifdef DEBUG
if (JitConfig.JitWasmNyiToR2RUnsupported())
{
NYI_WASM("Opcode not implemented");
}

NYIRAW(GenTree::OpName(treeNode->OperGet()));
#else
NYI_WASM("Opcode not implemented");
Expand Down
7 changes: 7 additions & 0 deletions src/coreclr/jit/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,14 @@ extern void notYetImplemented(const char* msg, const char* file, unsigned line);
#define NYI_ARM64(msg) do { } while (0)
#define NYI_LOONGARCH64(msg) do { } while (0)
#define NYI_RISCV64(msg) do { } while (0)

#if DEBUG
#define NYI_WASM(msg) do { if (JitConfig.JitWasmNyiToR2RUnsupported() > 0) \
{ JITDUMP("NYI_WASM: " msg); implReadyToRunUnsupported(); } \
else { NYIRAW("NYI_WASM: " msg); } } while (0)
#else
#define NYI_WASM(msg) NYIRAW("NYI_WASM: " msg)
#endif // DEBUG

#else

Expand Down
5 changes: 5 additions & 0 deletions src/coreclr/jit/jitconfigvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,11 @@ CONFIG_INTEGER(JitUseScalableVectorT, "JitUseScalableVectorT", 0)
CONFIG_INTEGER(JitDispIns, "JitDispIns", 0)
#endif // defined(TARGET_LOONGARCH64)

#if defined(TARGET_WASM)
// Set this to 1 to turn NYI_WASM into R2R unsupported failures instead of asserts.
CONFIG_INTEGER(JitWasmNyiToR2RUnsupported, "JitWasmNyiToR2RUnsupported", 0)
#endif // defined(TARGET_WASM)

// Allow to enregister locals with struct type.
RELEASE_CONFIG_INTEGER(JitEnregStructLocals, "JitEnregStructLocals", 1)

Expand Down
Loading