@hackage llvm-extension0.0
Processor specific intrinsics for the llvm interface
Categories
License
BSD-3-Clause
Maintainer
Henning Thielemann <haskell@henning-thielemann.de>
Links
Versions
- 0.0 Sun, 5 Jan 2020
Installation
Tested Compilers
Dependencies (11)
- base >=3 && <5
- containers >=0.1 && <0.7
- cpuid >=0.2.3 && <0.3
- llvm-extra >=0.9 && <0.10
- llvm-tf >=9.0 && <9.1
- non-empty >=0.2.1 && <0.4 Show all…
Dependents (0)
Package Flags
buildtools
(off by default)
Build intrinsic translator
cpuid
(on by default)
Use CPUID for host feature detection if available on the architecture
The Low-Level Virtual-Machine is a compiler back-end with optimizer. You may also call it a high-level portable assembler. LLVM provides processor specific instructions via so-called intrinsics. This package allows you to use such instructions, while also defining fallbacks for older versions of a processor and different architectures.
We provide an auto-generated list of intrinsics for special SSE+AVX instructions on the X86 target. On x86 architectures we depend on the cpuid package for automatic detection of available features. This works when using JIT or native compilation, but it fails for cross-compilation.
Formerly, this package was part of the llvm-extra package.
But the names of intrinsics change between LLVM versions without notification.
Intrinsics for processor specific instructions are considered a last resort.
In current LLVM versions all functions I needed so far
are available as generic intrinsics.