llvm::BasicTTIImplBase::isValidAddrSpaceCast

Return true if casting from FromAS to ToAS is valid on this target.

Synopsis

Declared in <llvm/CodeGen/BasicTTIImpl.h>

bool
isValidAddrSpaceCast(
    unsigned int FromAS,
    unsigned int ToAS) const override;

Return Value

True if casting from FromAS to ToAS is valid on this target.

Parameters

NameDescription
FromASSource address space.
ToASDestination address space.