Is there a way to force the compiler to bundle the definition to
Kotlin_Int_plus_Int
into the bitcode file?
s
sergey.bogolepov
12/01/2018, 6:34 AM
No. But soon arithmetic operations like this one will be inlined into bitcode.
j
jkbbwr
12/02/2018, 4:36 AM
Will it be possible to get the definitions of these methods eventually, as many as possible?
jkbbwr
12/02/2018, 4:36 AM
Even externally
s
sergey.bogolepov
12/02/2018, 7:13 AM
I don’t think so. What problem are you trying to solve?
j
jkbbwr
12/02/2018, 3:58 PM
Im trying to statically verify the llvm bitcode, the problem is it can't verfy methods it can't see inside like plus and so on. I don't want to have to shadow implement every runtime method in kotlin. So I need the bitcode
s
sergey.bogolepov
12/02/2018, 4:47 PM
You can pass
-Xverbose=object_files
compiler option to see the command (and all of bitcode files) that is used to create an object file.