Tom Sun via llvm-dev
2018-Feb-01 19:24 UTC
[llvm-dev] Get size of memory access with non-primitive type
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
Apparently Analagous Threads
- 6 separate instances of static getPointerOperand(). Time to consolidate?
- [LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
- [LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
- [LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
- 6 separate instances of static getPointerOperand(). Time to consolidate?