Added syntax highlighting
Details
Diff Detail
Event Timeline
Thanks for the patch! But do we do that for the other instruction syntax blocks as well? AFAICT the syntax blocks are not valid IR (due to the <> blocks) and .. code-block:: llvm is only used for examples with valid IR?
I think Comdats, Prologue Data, Preallocated Operand Bundles, Use-list Order Directives, Undefined Values, Metadata Nodes and Metadata Strings, DICompileUnit, DIFile, DIBaiscType, DI ... etc, callback, associated metadata, annotation, C type width Module Flags Metadata, Automatic Linker Flags Named Metadata, Params, callbr, callswitch, bitcast, etc ... have example section that needs LLVM syntax highlighting.
But please check that they are valid LLVM IR examples or not. Like variable name (called virtual register) that we can assign value start from % not <
You may take the help from the tutorial on LLVM IR recorded during the 2019 EuroLLVM Developers’ Meeting.
Also please change the title to Missing syntax highlighting for LLVM IR in Langref as mention in the bug report with [Docs] tag.