-
https://godbolt.org/z/YT8Ex8ohd
```
define i8 @phi(ptr %d, i32 %n) {
%ld = load , ptr %d
%b = bitcast %ld to i8
ret i8 %b
}
```
```
LLVM ERROR: unable to legalize instruction: %2:…
-
While working on ClangIR to LLVM lowering, we want to generate this kind of LLVM IR code:
```
@_ZN1BD1Ev = dso_local unnamed_addr alias void (ptr), ptr @_ZN1BD2Ev
@_ZN1CD2Ev = dso_local unnamed_…
-
Saw this in a larger codebase and tried to reduce the example as much as possible. It fails when running `cargo build --release` but compiles normally when running `cargo build`.
I noted that a lot o…
-
# Motivation
Dumping project in the LLVM IR will open an opportunity to many interesting projects, e.g., JIT compilation, running LLVM analyses, creating binaries, lifter verification, etc.
This ca…
-
Are there any plans to eventually support [LLVM vector types](http://llvm.org/docs/LangRef.html#vector-type)?
I've not personally used LLVM vector types, but they seem like a useful abstraction to ta…
-
Instead of bytecode, simply(?) generate LLVM IR?
https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.html
-
suboptimal llvm-ir due to missing noalias annotations after mir inlining
### Code
I tried this code:
```rust
#[inline(never)]
#[no_mangle]
pub unsafe fn noalias_ptr(x: *mut i32, y: *mu…
-
Miri executes this program without error, but I believe our lowering to LLVM IR adds UB:
```rust
#![feature(strict_provenance, exposed_provenance)]
#[no_mangle]
pub fn from_exposed_null(addr: usize) -…
-
**Context:**
I'm not sure whether this is a bug or I'm not understanding what Enzyme is warning me about, so some information on possible sources of the error would be really appreciated. The error m…
-
for the give IR
```mlir
module {
func.func @torch_jit( %arg2: !torch.vtensor, %arg3: !torch.vtensor) -> !torch.vtensor attributes {torch.onnx_meta.ir_version = 7 : si64, torch.onnx_meta.opset…