diff options
author | Thomas Lively <tlively@google.com> | 2023-09-13 20:02:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 20:02:26 -0700 |
commit | 2cbe448eb4df17010f0e5f360a8e705da710f3e0 (patch) | |
tree | b0967cb40dd4dbb2d209afb66cdf58c8af498cf9 /src/binaryen-c.h | |
parent | 9d79632c210a8c5002657ae87ff06c70ee109e8f (diff) | |
download | binaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.tar.gz binaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.tar.bz2 binaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.zip |
Replace i31.new with ref.i31 everywhere (#5931)
Replace i31.new with ref.i31 in the printer, tests, and source code. Continue
parsing i31.new for the time being to allow a graceful transition. Also update
the JS API to reflect the new instruction name.
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 4321ec452..d16f46d9a 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -2308,10 +2308,10 @@ BINARYEN_API void BinaryenTupleExtractSetIndex(BinaryenExpressionRef expr, // RefI31 -// Gets the value expression of an `i31.new` expression. +// Gets the value expression of a `ref.i31` expression. BINARYEN_API BinaryenExpressionRef BinaryenRefI31GetValue(BinaryenExpressionRef expr); -// Sets the value expression of an `i31.new` expression. +// Sets the value expression of a `ref.i31` expression. BINARYEN_API void BinaryenRefI31SetValue(BinaryenExpressionRef expr, BinaryenExpressionRef valueExpr); |