Create a pass that infers better address spaces for pointer users.
Declared in <llvm/Transforms/Scalar.h>
FunctionPass*
createInferAddressSpacesPass(unsigned int AddressSpace = ~0u);
Modifies users of addrspacecast instructions to use the source address space when the destination address space is slower on the target.
The newly created FunctionPass.
| Name | Description |
|---|---|
| AddressSpace | Flat address space to use, or ~0u to obtain it from TargetTransformInfo. |