I have been trying to extract pointer type using cpp API in llvm IR to use as metadata for the instruction. I have found various ways to get the pointer type of the instruction operands (e.g. getPointerElementType()) but the results are always in hex format (0x....) which is not useful because it doesn't tell whether the pointer is int or float etc. I am mainly working with load instruction. My question is how to get the pointer type in Ascii (e.g. as float or i32)?
P.s. I am very new to llvm, so forgive me if i asked something very basic.