Skip to content

Instantly share code, notes, and snippets.

@sohaibiftikhar
sohaibiftikhar / corrected_ir
Last active December 4, 2025 13:01
llvm_169061_csan_logs
module attributes {gpu.container_module} {
llvm.func @malloc(i64) -> !llvm.ptr
llvm.func @main() {
%0 = llvm.mlir.constant(2 : index) : i64 // Rank = 2
%1 = llvm.mlir.poison : !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
%2 = llvm.mlir.zero : !llvm.ptr
%3 = llvm.mlir.constant(1.000000e+00 : f64) : f64
%4 = llvm.mlir.constant(3.140000e+00 : f64) : f64
%5 = llvm.mlir.constant(0 : index) : i64
%6 = llvm.mlir.constant(8 : index) : i64
@sohaibiftikhar
sohaibiftikhar / mixins.java
Last active June 25, 2018 22:21
java mixins
class A {
public int a() {
return 1;
}
}
class B1 extends A {
public int b() {
return a() + 1;
}