1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language SYSTEM "language.dtd">
3 <language name="LLVM" section="Sources"
4 version="1.00" kateversion="3.4.4"
8 license="LLVM Release License">
10 <list name="keywords">
15 <item> declare </item>
18 <item> constant </item>
23 <item> datalayout </item>
26 <item> blockaddress </item>
27 <item> sideeffect </item>
28 <item> alignstack </item>
33 <item> inbounds </item>
40 <list name="linkage-types">
41 <item> private </item>
42 <item> internal </item>
43 <item> available_externally </item>
44 <item> linkonce </item>
47 <item> appending </item>
48 <item> extern_weak </item>
49 <item> linkonce_odr </item>
50 <item> weak_odr </item>
51 <item> dllimport </item>
52 <item> dllexport </item>
54 <list name="calling-conventions">
60 <list name="visibility-styles">
61 <item> default </item>
63 <item> protected </item>
65 <list name="parameter-attributes">
66 <item> zeroext </item>
67 <item> signext </item>
71 <item> noalias </item>
72 <item> nocapture </item>
75 <list name="function-attributes">
76 <item> alignstack </item>
77 <item> alwaysinline </item>
78 <item> inlinehint </item>
80 <item> noimplicitfloat </item>
81 <item> noinline </item>
82 <item> noredzone </item>
83 <item> noreturn </item>
84 <item> nounwind </item>
85 <item> optnone </item>
86 <item> optsize </item>
87 <item> readnone </item>
88 <item> readonly </item>
91 <item> sspstrong </item>
97 <item> x86_fp80 </item>
98 <item> ppc_fp128 </item>
102 <item> metadata </item>
103 <item> opaque </item>
105 <list name="intrinsic-global-variables">
106 <item> llvm.used </item>
107 <item> llvm.compiler.used </item>
108 <item> llvm.global_ctors </item>
109 <item> llvm.global_dtors </item>
111 <list name="instructions">
114 <item> switch </item>
115 <item> indirectbr </item>
116 <item> invoke </item>
117 <item> unwind </item>
118 <item> unreachable </item>
138 <item> extractelement </item>
139 <item> insertelement </item>
140 <item> shufflevector </item>
141 <item> extractvalue </item>
142 <item> insertvalue </item>
143 <item> alloca </item>
146 <item> getelementptr </item>
150 <item> fptrunc </item>
152 <item> fptoui </item>
153 <item> fptosi </item>
154 <item> uitofp </item>
155 <item> sitofp </item>
156 <item> ptrtoint </item>
157 <item> inttoptr </item>
158 <item> bitcast </item>
159 <item> addrspacecast </item>
163 <item> select </item>
165 <item> va_arg </item>
167 <list name="conditions">
190 <context name="llvm" attribute="Normal Text" lineEndContext="#stay">
192 <AnyChar String="@%" attribute="Symbol" context="symbol" />
194 <DetectChar char="{" beginRegion="Brace1" />
195 <DetectChar char="}" endRegion="Brace1" />
196 <DetectChar char=";" attribute="Comment" context="comment" />
197 <DetectChar attribute="String" context="string" char=""" />
198 <RegExpr String="i[0-9]+" attribute="Data Type" context="#stay" />
199 <RegExpr attribute="Symbol" String="[-a-zA-Z$._][-a-zA-Z$._0-9]*:" context="#stay" />
200 <Int attribute="Int" context="#stay" />
202 <keyword attribute="Keyword" String="keywords" />
203 <keyword attribute="Keyword" String="linkage-types" />
204 <keyword attribute="Keyword" String="calling-conventions" />
205 <keyword attribute="Keyword" String="visibility-styles" />
206 <keyword attribute="Keyword" String="parameter-attributes" />
207 <keyword attribute="Keyword" String="function-attributes" />
208 <keyword attribute="Data Type" String="types" />
209 <keyword attribute="Keyword" String="intrinsic-global-variables" />
210 <keyword attribute="Keyword" String="instructions" />
211 <keyword attribute="Keyword" String="conditions" />
214 <context name="symbol" attribute="Symbol" lineEndContext="#pop">
215 <DetectChar attribute="Symbol" context="symbol-string" char=""" />
216 <RegExpr attribute="Symbol" String="([-a-zA-Z$._][-a-zA-Z$._0-9]*|[0-9]+)" context="#pop" />
219 <context name="symbol-string" attribute="Symbol" lineEndContext="#stay">
220 <DetectChar attribute="Symbol" context="#pop#pop" char=""" />
223 <context name="string" attribute="String" lineEndContext="#stay">
224 <DetectChar attribute="String" context="#pop" char=""" />
227 <context name="comment" attribute="Comment" lineEndContext="#pop">
229 <!-- TODO: Add FileCheck syntax highlighting -->
230 <IncludeRules context="##Alerts" />
235 <itemData name="Normal Text" defStyleNum="dsNormal" />
236 <itemData name="Keyword" defStyleNum="dsKeyword" />
237 <itemData name="Data Type" defStyleNum="dsDataType" />
238 <itemData name="Int" defStyleNum="dsDecVal" />
239 <itemData name="Hex" defStyleNum="dsBaseN" />
240 <itemData name="Float" defStyleNum="dsFloat" />
241 <itemData name="String" defStyleNum="dsString" />
242 <itemData name="Comment" defStyleNum="dsComment" />
243 <itemData name="Function" defStyleNum="dsFunction" />
244 <itemData name="Symbol" defStyleNum="dsFunction" />
249 <comment name="singleLine" start=";" />
251 <keywords casesensitive="1" weakDeliminator="." />
255 // kate: space-indent on; indent-width 2; replace-tabs on;