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>
39 <item> monotonic </item>
41 <list name="linkage-types">
42 <item> private </item>
43 <item> internal </item>
44 <item> available_externally </item>
45 <item> linkonce </item>
48 <item> appending </item>
49 <item> extern_weak </item>
50 <item> linkonce_odr </item>
51 <item> weak_odr </item>
52 <item> dllimport </item>
53 <item> dllexport </item>
55 <list name="calling-conventions">
60 <item> spir_kernel </item>
62 <list name="visibility-styles">
63 <item> default </item>
65 <item> protected </item>
67 <list name="parameter-attributes">
68 <item> zeroext </item>
69 <item> signext </item>
74 <item> noalias </item>
75 <item> nocapture </item>
78 <list name="function-attributes">
79 <item> alignstack </item>
80 <item> allocsize </item>
81 <item> alwaysinline </item>
82 <item> argmemonly </item>
83 <item> arm_aapcscc </item>
86 <item> convergent </item>
87 <item> dereferenceable_or_null </item>
88 <item> extern_weak </item>
91 <item> inaccessiblemem_or_argmemonly </item>
92 <item> inaccessiblememonly </item>
93 <item> inalloca </item>
94 <item> inlinehint </item>
95 <item> inteldialect </item>
96 <item> jumptable </item>
97 <item> local_unnamed_addr </item>
98 <item> mustprogress </item>
100 <item> nobuiltin </item>
101 <item> nocallback </item>
102 <item> nocf_check </item>
103 <item> noduplicate </item>
104 <item> nofree </item>
105 <item> noimplicitfloat </item>
106 <item> noinline </item>
107 <item> nomerge </item>
108 <item> noprofile </item>
109 <item> noredzone </item>
110 <item> noreturn </item>
111 <item> nosync </item>
112 <item> nounwind </item>
113 <item> null_pointer_is_valid </item>
114 <item> optdebug </item>
115 <item> optforfuzzing </item>
116 <item> optnone </item>
117 <item> optsize </item>
118 <item> preallocated </item>
119 <item> readnone </item>
120 <item> readonly </item>
121 <item> safestack </item>
122 <item> sanitize_hwaddress </item>
123 <item> sanitize_memtag </item>
124 <item> shadowcallstack </item>
125 <item> speculative_load_hardening </item>
127 <item> sspreq </item>
128 <item> sspstrong </item>
129 <item> swifterror </item>
130 <item> syncscope </item>
131 <item> tailcc </item>
132 <item> willreturn </item>
133 <item> willreturn </item>
136 <item> addrspace </item>
138 <item> bfloat </item>
140 <item> double </item>
142 <item> x86_fp80 </item>
143 <item> ppc_fp128 </item>
144 <item> x86_mmx </item>
145 <item> x86_amx </item>
148 <item> metadata </item>
149 <item> opaque </item>
151 <list name="intrinsic-global-variables">
152 <item> llvm.used </item>
153 <item> llvm.compiler.used </item>
154 <item> llvm.global_ctors </item>
155 <item> llvm.global_dtors </item>
157 <list name="instructions">
160 <item> switch </item>
161 <item> indirectbr </item>
162 <item> invoke </item>
163 <item> unwind </item>
164 <item> unreachable </item>
189 <item> extractelement </item>
190 <item> insertelement </item>
191 <item> shufflevector </item>
192 <item> extractvalue </item>
193 <item> insertvalue </item>
194 <item> alloca </item>
197 <item> getelementptr </item>
201 <item> fptrunc </item>
203 <item> fptoui </item>
204 <item> fptosi </item>
205 <item> uitofp </item>
206 <item> sitofp </item>
207 <item> ptrtoint </item>
208 <item> inttoptr </item>
209 <item> bitcast </item>
210 <item> addrspacecast </item>
213 <item> atomicrmw </item>
214 <item> cmpxchg </item>
216 <item> select </item>
218 <item> va_arg </item>
220 <list name="conditions">
243 <context name="llvm" attribute="Normal Text" lineEndContext="#stay">
245 <AnyChar String="@%" attribute="Symbol" context="symbol" />
247 <DetectChar char="{" beginRegion="Brace1" />
248 <DetectChar char="}" endRegion="Brace1" />
249 <DetectChar char=";" attribute="Comment" context="comment" />
250 <DetectChar attribute="String" context="string" char=""" />
251 <RegExpr String="i[0-9]+" attribute="Data Type" context="#stay" />
252 <RegExpr attribute="Symbol" String="[-a-zA-Z$._][-a-zA-Z$._0-9]*:" context="#stay" />
253 <Int attribute="Int" context="#stay" />
255 <keyword attribute="Keyword" String="keywords" />
256 <keyword attribute="Keyword" String="linkage-types" />
257 <keyword attribute="Keyword" String="calling-conventions" />
258 <keyword attribute="Keyword" String="visibility-styles" />
259 <keyword attribute="Keyword" String="parameter-attributes" />
260 <keyword attribute="Keyword" String="function-attributes" />
261 <keyword attribute="Data Type" String="types" />
262 <keyword attribute="Keyword" String="intrinsic-global-variables" />
263 <keyword attribute="Keyword" String="instructions" />
264 <keyword attribute="Keyword" String="conditions" />
267 <context name="symbol" attribute="Symbol" lineEndContext="#pop">
268 <DetectChar attribute="Symbol" context="symbol-string" char=""" />
269 <RegExpr attribute="Symbol" String="([-a-zA-Z$._][-a-zA-Z$._0-9]*|[0-9]+)" context="#pop" />
272 <context name="symbol-string" attribute="Symbol" lineEndContext="#stay">
273 <DetectChar attribute="Symbol" context="#pop#pop" char=""" />
276 <context name="string" attribute="String" lineEndContext="#stay">
277 <DetectChar attribute="String" context="#pop" char=""" />
280 <context name="comment" attribute="Comment" lineEndContext="#pop">
282 <!-- TODO: Add FileCheck syntax highlighting -->
283 <IncludeRules context="##Alerts" />
288 <itemData name="Normal Text" defStyleNum="dsNormal" />
289 <itemData name="Keyword" defStyleNum="dsKeyword" />
290 <itemData name="Data Type" defStyleNum="dsDataType" />
291 <itemData name="Int" defStyleNum="dsDecVal" />
292 <itemData name="Hex" defStyleNum="dsBaseN" />
293 <itemData name="Float" defStyleNum="dsFloat" />
294 <itemData name="String" defStyleNum="dsString" />
295 <itemData name="Comment" defStyleNum="dsComment" />
296 <itemData name="Function" defStyleNum="dsFunction" />
297 <itemData name="Symbol" defStyleNum="dsFunction" />
302 <comment name="singleLine" start=";" />
304 <keywords casesensitive="1" weakDeliminator="." />
308 // kate: space-indent on; indent-width 2; replace-tabs on;