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> linker_private </item>
43 <item> linker_private_weak </item>
44 <item> linker_private_weak_def_auto </item>
45 <item> internal </item>
46 <item> available_externally </item>
47 <item> linkonce </item>
50 <item> appending </item>
51 <item> extern_weak </item>
52 <item> linkonce_odr </item>
53 <item> weak_odr </item>
54 <item> dllimport </item>
55 <item> dllexport </item>
57 <list name="calling-conventions">
63 <list name="visibility-styles">
64 <item> default </item>
66 <item> protected </item>
68 <list name="parameter-attributes">
69 <item> zeroext </item>
70 <item> signext </item>
74 <item> noalias </item>
75 <item> nocapture </item>
78 <list name="function-attributes">
79 <item> alignstack </item>
80 <item> alwaysinline </item>
81 <item> inlinehint </item>
83 <item> noimplicitfloat </item>
84 <item> noinline </item>
85 <item> noredzone </item>
86 <item> noreturn </item>
87 <item> nounwind </item>
88 <item> optsize </item>
89 <item> readnone </item>
90 <item> readonly </item>
98 <item> x86_fp80 </item>
99 <item> ppc_fp128 </item>
100 <item> x86mmx </item>
103 <item> metadata </item>
104 <item> opaque </item>
106 <list name="intrinsic-global-variables">
107 <item> llvm.used </item>
108 <item> llvm.compiler.used </item>
109 <item> llvm.global_ctors </item>
110 <item> llvm.global_dtors </item>
112 <list name="instructions">
115 <item> switch </item>
116 <item> indirectbr </item>
117 <item> invoke </item>
118 <item> unwind </item>
119 <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>
162 <item> select </item>
164 <item> va_arg </item>
166 <list name="conditions">
189 <context name="llvm" attribute="Normal Text" lineEndContext="#stay">
191 <AnyChar String="@%" attribute="Symbol" context="symbol" />
193 <DetectChar char="{" beginRegion="Brace1" />
194 <DetectChar char="}" endRegion="Brace1" />
195 <DetectChar char=";" attribute="Comment" context="comment" />
196 <DetectChar attribute="String" context="string" char=""" />
197 <RegExpr String="i[0-9]+" attribute="Data Type" context="#stay" />
198 <RegExpr attribute="Symbol" String="[-a-zA-Z$._][-a-zA-Z$._0-9]*:" context="#stay" />
199 <Int attribute="Int" context="#stay" />
201 <keyword attribute="Keyword" String="keywords" />
202 <keyword attribute="Keyword" String="linkage-types" />
203 <keyword attribute="Keyword" String="calling-conventions" />
204 <keyword attribute="Keyword" String="visibility-styles" />
205 <keyword attribute="Keyword" String="parameter-attributes" />
206 <keyword attribute="Keyword" String="function-attributes" />
207 <keyword attribute="Data Type" String="types" />
208 <keyword attribute="Keyword" String="intrinsic-global-variables" />
209 <keyword attribute="Keyword" String="instructions" />
210 <keyword attribute="Keyword" String="conditions" />
213 <context name="symbol" attribute="Symbol" lineEndContext="#pop">
214 <DetectChar attribute="Symbol" context="symbol-string" char=""" />
215 <RegExpr attribute="Symbol" String="([-a-zA-Z$._][-a-zA-Z$._0-9]*|[0-9]+)" context="#pop" />
218 <context name="symbol-string" attribute="Symbol" lineEndContext="#stay">
219 <DetectChar attribute="Symbol" context="#pop#pop" char=""" />
222 <context name="string" attribute="String" lineEndContext="#stay">
223 <DetectChar attribute="String" context="#pop" char=""" />
226 <context name="comment" attribute="Comment" lineEndContext="#pop">
228 <!-- TODO: Add FileCheck syntax highlighting -->
229 <IncludeRules context="##Alerts" />
234 <itemData name="Normal Text" defStyleNum="dsNormal" />
235 <itemData name="Keyword" defStyleNum="dsKeyword" />
236 <itemData name="Data Type" defStyleNum="dsDataType" />
237 <itemData name="Int" defStyleNum="dsDecVal" />
238 <itemData name="Hex" defStyleNum="dsBaseN" />
239 <itemData name="Float" defStyleNum="dsFloat" />
240 <itemData name="String" defStyleNum="dsString" />
241 <itemData name="Comment" defStyleNum="dsComment" />
242 <itemData name="Function" defStyleNum="dsFunction" />
243 <itemData name="Symbol" defStyleNum="dsFunction" />
248 <comment name="singleLine" start=";" />
250 <keywords casesensitive="1" weakDeliminator="." />
254 // kate: space-indent on; indent-width 2; replace-tabs on;