mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 17:32:49 +00:00
SDNode: Add uses() iterator_range convenience methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
42382d3e37
commit
fb4b420326
@ -19,6 +19,7 @@
|
||||
#ifndef LLVM_CODEGEN_SELECTIONDAGNODES_H
|
||||
#define LLVM_CODEGEN_SELECTIONDAGNODES_H
|
||||
|
||||
#include "llvm/ADT/iterator_range.h"
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/ADT/GraphTraits.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
@ -507,6 +508,12 @@ public:
|
||||
|
||||
static use_iterator use_end() { return use_iterator(0); }
|
||||
|
||||
inline iterator_range<use_iterator> uses() {
|
||||
return iterator_range<use_iterator>(use_begin(), use_end());
|
||||
}
|
||||
inline iterator_range<use_iterator> uses() const {
|
||||
return iterator_range<use_iterator>(use_begin(), use_end());
|
||||
}
|
||||
|
||||
/// hasNUsesOfValue - Return true if there are exactly NUSES uses of the
|
||||
/// indicated value. This method ignores uses of other values defined by this
|
||||
|
Loading…
x
Reference in New Issue
Block a user