[llvm-dev] TableGen boolean literals: opinions, please

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 22 06:56:09 PDT 2020


A more rigorous search turns up one use of lowercase 'true' in the NVPTX target plus a few in the TableGen tests. I think I will clean those out in anticipation of implementing these boolean literals.

At 10/21/2020 10:10 PM, Thomas Lively wrote:
>Even given the option to use TRUE and FALSE, I think I would prefer to continue using 1 and 0 for stylistic reasons. Most of the TableGen I work with is snake_case or CamelCase, so all-caps TRUE and FALSE would look out of place. If we could use lower case `true` and `false`, I would use those.



More information about the llvm-dev mailing list