
These instructions sometimes pop up in LLVM 15, but they never occured in LLVM 14. Implementing them is relatively straightforward: simply generalize the code that already exists for llvm.ICmp interpreting.
12 строки
497 Б
LLVM
12 строки
497 Б
LLVM
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64--linux"
|
|
|
|
@intToPtrResult = local_unnamed_addr global i8 2
|
|
@ptrToIntResult = local_unnamed_addr global i8 2
|
|
@icmpResult = local_unnamed_addr global i8 2
|
|
@someArray = internal global { i16, i8, i8 } zeroinitializer
|
|
@someArrayPointer = local_unnamed_addr global i8* getelementptr inbounds ({ i16, i8, i8 }, { i16, i8, i8 }* @someArray, i64 0, i32 1)
|
|
|
|
define void @runtime.initAll() local_unnamed_addr {
|
|
ret void
|
|
}
|