LLVM: llvm::dxil::PointerTypeAnalysis Namespace Reference (original) (raw)
An analysis to compute the PointerTypes for pointers in a [Module](classllvm%5F1%5F1Module.html "A Module instance is used to store all the information related to an LLVM module.").
Since this analysis is only run during codegen and the new pass manager doesn't support codegen passes, this is wrtten as a function in a namespace. It is very simple to transform it into a proper analysis pass. This code relies on typed pointers existing as LLVM types, but could be migrated to a custom Type if PointerType loses typed support.