diff options
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 8e436de66..a4210a8db 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -1654,6 +1654,50 @@ BinaryenSIMDLoadGetPtr(BinaryenExpressionRef expr); BINARYEN_API void BinaryenSIMDLoadSetPtr(BinaryenExpressionRef expr, BinaryenExpressionRef ptrExpr); +// SIMDLoadStoreLane + +// Gets the operation being performed by a SIMD load/store lane expression. +BINARYEN_API BinaryenOp +BinaryenSIMDLoadStoreLaneGetOp(BinaryenExpressionRef expr); +// Sets the operation being performed by a SIMD load/store lane expression. +BINARYEN_API void BinaryenSIMDLoadStoreLaneSetOp(BinaryenExpressionRef expr, + BinaryenOp op); +// Gets the constant offset of a SIMD load/store lane expression. +BINARYEN_API uint32_t +BinaryenSIMDLoadStoreLaneGetOffset(BinaryenExpressionRef expr); +// Sets the constant offset of a SIMD load/store lane expression. +BINARYEN_API void BinaryenSIMDLoadStoreLaneSetOffset(BinaryenExpressionRef expr, + uint32_t offset); +// Gets the byte alignment of a SIMD load/store lane expression. +BINARYEN_API uint32_t +BinaryenSIMDLoadStoreLaneGetAlign(BinaryenExpressionRef expr); +// Sets the byte alignment of a SIMD load/store lane expression. +BINARYEN_API void BinaryenSIMDLoadStoreLaneSetAlign(BinaryenExpressionRef expr, + uint32_t align); +// Gets the lane index of a SIMD load/store lane expression. +BINARYEN_API uint8_t +BinaryenSIMDLoadStoreLaneGetIndex(BinaryenExpressionRef expr); +// Sets the lane index of a SIMD load/store lane expression. +BINARYEN_API void BinaryenSIMDLoadStoreLaneSetIndex(BinaryenExpressionRef expr, + uint8_t index); +// Gets the pointer expression of a SIMD load/store lane expression. +BINARYEN_API BinaryenExpressionRef +BinaryenSIMDLoadStoreLaneGetPtr(BinaryenExpressionRef expr); +// Sets the pointer expression of a SIMD load/store lane expression. +BINARYEN_API void +BinaryenSIMDLoadStoreLaneSetPtr(BinaryenExpressionRef expr, + BinaryenExpressionRef ptrExpr); +// Gets the vector expression of a SIMD load/store lane expression. +BINARYEN_API BinaryenExpressionRef +BinaryenSIMDLoadStoreLaneGetVec(BinaryenExpressionRef expr); +// Sets the vector expression of a SIMD load/store lane expression. +BINARYEN_API void +BinaryenSIMDLoadStoreLaneSetVec(BinaryenExpressionRef expr, + BinaryenExpressionRef vecExpr); +// Gets whether a SIMD load/store lane expression performs a store. Otherwise it +// performs a load. +BINARYEN_API bool BinaryenSIMDLoadStoreLaneIsStore(BinaryenExpressionRef expr); + // MemoryInit // Gets the index of the segment being initialized by a `memory.init` |