The value "true" and "false" are treated specially and other values are treated as integers.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks so much for adding this! This is definitely LGTM from me, but I'll let your other reviewers decide if anything else should be added.
llvm/docs/WritingAnLLVMBackend.rst | ||
---|---|---|
1768 | Do you think it would help to reference which parameter you're referring to in the example code? Also, do you think it bears mentioning how the boolean value is determined? It is certainly an implementation detail, but it may be good to specify. |
llvm/docs/WritingAnLLVMBackend.rst | ||
---|---|---|
1772 | Here's the X86SSELevel code from X86GenSubtargetInfo.inc as an example if (Bits[X86::FeatureAVX] && X86SSELevel < AVX) X86SSELevel = AVX; if (Bits[X86::FeatureAVX2] && X86SSELevel < AVX2) X86SSELevel = AVX2; if (Bits[X86::FeatureAVX512] && X86SSELevel < AVX512) X86SSELevel = AVX512; | |
1773 | I was following the wording from the paragraph above and the .td. Should I change them all? |
llvm/docs/WritingAnLLVMBackend.rst | ||
---|---|---|
1773 | Yes. I think there's frequent confusion between "attributes" and subtarget features in "target-features" |
llvm/docs/WritingAnLLVMBackend.rst | ||
---|---|---|
1773 | Can I do it as a follow up? Looks like I need to rename the field in the SubtargetFeature class itself to do it correctly which will involve tablegen emitter changes. |
Do you think it would help to reference which parameter you're referring to in the example code?
Also, do you think it bears mentioning how the boolean value is determined? It is certainly an implementation detail, but it may be good to specify.