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