diff options
author | dcode <dcode@dcode.io> | 2022-11-03 17:08:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 09:08:46 -0700 |
commit | fe78fe116a67ae37d0e6d4597832042d3cbff230 (patch) | |
tree | 2d9e933a13e92402051237ab39b73c5175c8030e /src/passes/OptimizeForJS.cpp | |
parent | 201e5ceae6f092f7a4f34d6e681a9887812f0035 (diff) | |
download | binaryen-fe78fe116a67ae37d0e6d4597832042d3cbff230.tar.gz binaryen-fe78fe116a67ae37d0e6d4597832042d3cbff230.tar.bz2 binaryen-fe78fe116a67ae37d0e6d4597832042d3cbff230.zip |
[C API] Add APIs to inspect compound heap types (#5195)
Adds C APIs to inspect compound struct, array and signature heap types:
Obtain field types, field packed types and field mutabilities of struct types:
BinaryenStructTypeGetNumFields (to iterate)
BinaryenStructTypeGetFieldType
BinaryenStructTypeGetFieldPackedType
BinaryenStructTypeIsFieldMutable
Obtain element type, element packed type and element mutability of array types:
BinaryenArrayTypeGetElementType
BinaryenArrayTypeGetElementPackedType
BinaryenArrayTypeIsElementMutable
Obtain parameter and result types of signature types:
BinaryenSignatureTypeGetParams
BinaryenSignatureTypeGetResults
Diffstat (limited to 'src/passes/OptimizeForJS.cpp')
0 files changed, 0 insertions, 0 deletions