[llvm-dev] Get size of memory access with non-primitive type
Tom Sun via llvm-dev
llvm-dev at lists.llvm.org
Thu Feb 1 11:24:49 PST 2018
Hi all,
I am trying to get the size of memory access (load) using
dyn_cast<LoadInst>(Inst)->getType()->getPrimitiveSizeinBit(), which
works for most cases. However, for load instructions like "%18 = load
i8*, i8** %11, align 8, !tbaa !10" where we have double star (**)
pointer access, such method would only return a value of 0. I am
wondering is there any method that could allow me to get the size of
loading in this case?
Thanks in advance,
Tom
More information about the llvm-dev
mailing list