forked from OSchip/llvm-project
parent
d60388a985
commit
c5d29aa7c4
|
@ -51,9 +51,9 @@ static cl::opt<bool> EnableScopedNoAlias("enable-scoped-noalias",
|
||||||
cl::init(true));
|
cl::init(true));
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
/// AliasScopeNode - This is a simple wrapper around an MDNode which provides
|
/// This is a simple wrapper around an MDNode which provides a higher-level
|
||||||
/// a higher-level interface by hiding the details of how alias analysis
|
/// interface by hiding the details of how alias analysis information is encoded
|
||||||
/// information is encoded in its operands.
|
/// in its operands.
|
||||||
class AliasScopeNode {
|
class AliasScopeNode {
|
||||||
const MDNode *Node;
|
const MDNode *Node;
|
||||||
|
|
||||||
|
@ -61,10 +61,10 @@ public:
|
||||||
AliasScopeNode() : Node(nullptr) {}
|
AliasScopeNode() : Node(nullptr) {}
|
||||||
explicit AliasScopeNode(const MDNode *N) : Node(N) {}
|
explicit AliasScopeNode(const MDNode *N) : Node(N) {}
|
||||||
|
|
||||||
/// getNode - Get the MDNode for this AliasScopeNode.
|
/// Get the MDNode for this AliasScopeNode.
|
||||||
const MDNode *getNode() const { return Node; }
|
const MDNode *getNode() const { return Node; }
|
||||||
|
|
||||||
/// getDomain - Get the MDNode for this AliasScopeNode's domain.
|
/// Get the MDNode for this AliasScopeNode's domain.
|
||||||
const MDNode *getDomain() const {
|
const MDNode *getDomain() const {
|
||||||
if (Node->getNumOperands() < 2)
|
if (Node->getNumOperands() < 2)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue