Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
| include/clang/Basic/BuiltinsWebAssembly.def | ||
|---|---|---|
| 46 ↗ | (On Diff #168199) |
|
| test/CodeGen/builtins-wasm.c | ||
| 112 ↗ | (On Diff #168199) | The same for the return values here. |
| include/clang/Basic/BuiltinsWebAssembly.def | ||
|---|---|---|
| 46 ↗ | (On Diff #168199) | The I makes Sema ensure it is a Integer Constant Expression. |
| lib/CodeGen/CGBuiltin.cpp | ||
| 12433 ↗ | (On Diff #168199) | I believe you need to use isIntegerConstantExpr to force clang to really evaluate it as a constant integer. if its a more complicated expression. |
| include/clang/Basic/BuiltinsWebAssembly.def | ||
|---|---|---|
| 46 ↗ | (On Diff #168199) | I want these builtins to mimic the underlying wasm instructions as much as possible. I believe end users are more likely to be looking at the WebAssembly spec than the LLVM language reference when using these functions. |