I try to compile a cpp file into a ir file by clang. And there is a definition of struct pointer in cpp file, like "struct structType *p", and the value or element of p is never visited.
AS a result, the IR file compiled by LLVM15 don't contain any information of the structType. But the IR file compiled by LLVM12 contain the information "%struct.structType = type opaque".
Since the IR file is used for LLVM JIT as library IR, so the result of LLVM15 will report error in JIT compilation of "cannot resolve name...". So how could I generate IR result with structType information in LLVM15. The command used previously to generate IR is "clang -c -emit-llvm -O0".