EnzymeAD / EnzymeAD/Enzyme

Use of statement expression in tblgen generated code

Open
#1,209 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
LLVM
Stars
1.7k
Forks
188
Avg merge
1d 22h
Merged PRs (30d)
26

Description

We generate some code in the form of statement expressions in tblgen here:
https://github.com/EnzymeAD/Enzyme/blob/43f2c03825db2dbc46c86f10e46db6867595a1c0/enzyme/tools/enzyme-tblgen/enzyme-tblgen.cpp#L167-L203

Since [statement expression](https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html) is a GNU extension rather than c/c++ standard, and is not supported by MSVC, I am not sure whether we need to replace them via lambda expressions.

cc @ZuseZ4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.