Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1/*2Language: LLVM IR3Author: Michael Rodler <contact@f0rki.at>4Description: language used as intermediate representation in the LLVM compiler framework5Website: https://llvm.org/docs/LangRef.html6Category: assembler7Audit: 20208*/9 10/** @type LanguageFn */11function llvm(hljs) {12 const regex = hljs.regex;13 const IDENT_RE = /([-a-zA-Z$._][\w$.-]*)/;14 const TYPE = {15 className: 'type',16 begin: /\bi\d+(?=\s|\b)/17 };18 const OPERATOR = {19 className: 'operator',20 relevance: 0,21 begin: /=/22 };23 const PUNCTUATION = {24 className: 'punctuation',25 relevance: 0,26 begin: /,/27 };28 const NUMBER = {29 className: 'number',30 variants: [31 { begin: /[su]?0[xX][KMLHR]?[a-fA-F0-9]+/ },32 { begin: /[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/ }33 ],34 relevance: 035 };36 const LABEL = {37 className: 'symbol',38 variants: [ { begin: /^\s*[a-z]+:/ }, // labels39 ],40 relevance: 041 };42 const VARIABLE = {43 className: 'variable',44 variants: [45 { begin: regex.concat(/%/, IDENT_RE) },46 { begin: /%\d+/ },47 { begin: /#\d+/ },48 ]49 };50 const FUNCTION = {51 className: 'title',52 variants: [53 { begin: regex.concat(/@/, IDENT_RE) },54 { begin: /@\d+/ },55 { begin: regex.concat(/!/, IDENT_RE) },56 { begin: regex.concat(/!\d+/, IDENT_RE) },57 // https://llvm.org/docs/LangRef.html#namedmetadatastructure58 // obviously a single digit can also be used in this fashion59 { begin: /!\d+/ }60 ]61 };62 63 return {64 name: 'LLVM IR',65 // TODO: split into different categories of keywords66 keywords: {67 keyword: 'begin end true false declare define global '68 + 'constant private linker_private internal '69 + 'available_externally linkonce linkonce_odr weak '70 + 'weak_odr appending dllimport dllexport common '71 + 'default hidden protected extern_weak external '72 + 'thread_local zeroinitializer undef null to tail '73 + 'target triple datalayout volatile nuw nsw nnan '74 + 'ninf nsz arcp fast exact inbounds align '75 + 'addrspace section alias module asm sideeffect '76 + 'gc dbg linker_private_weak attributes blockaddress '77 + 'initialexec localdynamic localexec prefix unnamed_addr '78 + 'ccc fastcc coldcc x86_stdcallcc x86_fastcallcc '79 + 'arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device '80 + 'ptx_kernel intel_ocl_bicc msp430_intrcc spir_func '81 + 'spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc '82 + 'cc c signext zeroext inreg sret nounwind '83 + 'noreturn noalias nocapture byval nest readnone '84 + 'readonly inlinehint noinline alwaysinline optsize ssp '85 + 'sspreq noredzone noimplicitfloat naked builtin cold '86 + 'nobuiltin noduplicate nonlazybind optnone returns_twice '87 + 'sanitize_address sanitize_memory sanitize_thread sspstrong '88 + 'uwtable returned type opaque eq ne slt sgt '89 + 'sle sge ult ugt ule uge oeq one olt ogt '90 + 'ole oge ord uno ueq une x acq_rel acquire '91 + 'alignstack atomic catch cleanup filter inteldialect '92 + 'max min monotonic nand personality release seq_cst '93 + 'singlethread umax umin unordered xchg add fadd '94 + 'sub fsub mul fmul udiv sdiv fdiv urem srem '95 + 'frem shl lshr ashr and or xor icmp fcmp '96 + 'phi call trunc zext sext fptrunc fpext uitofp '97 + 'sitofp fptoui fptosi inttoptr ptrtoint bitcast '98 + 'addrspacecast select va_arg ret br switch invoke '99 + 'unwind unreachable indirectbr landingpad resume '100 + 'malloc alloca free load store getelementptr '101 + 'extractelement insertelement shufflevector getresult '102 + 'extractvalue insertvalue atomicrmw cmpxchg fence '103 + 'argmemonly',104 type: 'void half bfloat float double fp128 x86_fp80 ppc_fp128 '105 + 'x86_amx x86_mmx ptr label token metadata opaque'106 },107 contains: [108 TYPE,109 // this matches "empty comments"...110 // ...because it's far more likely this is a statement terminator in111 // another language than an actual comment112 hljs.COMMENT(/;\s*$/, null, { relevance: 0 }),113 hljs.COMMENT(/;/, /$/),114 {115 className: 'string',116 begin: /"/,117 end: /"/,118 contains: [119 {120 className: 'char.escape',121 match: /\\\d\d/122 }123 ]124 },125 FUNCTION,126 PUNCTUATION,127 OPERATOR,128 VARIABLE,129 LABEL,130 NUMBER131 ]132 };133}134 135export { llvm as default };136 