Lines Matching defs:const
44 static Node* New(Zone* zone, NodeId id, const Operator* op, int input_count,
45 Node* const* inputs, bool has_extensible_inputs);
46 static Node* Clone(Zone* zone, NodeId id, const Node* node);
48 inline bool IsDead() const;
51 const Operator* op() const { return op_; }
53 constexpr IrOpcode::Value opcode() const {
58 NodeId id() const { return IdField::decode(bit_field_); }
60 int InputCount() const {
71 Node* InputAt(int index) const {
100 int UseCount() const;
107 inline Inputs inputs() const;
114 inline iterator begin() const;
115 inline iterator end() const;
117 bool empty() const;
132 inline const_iterator begin() const;
133 inline const_iterator end() const;
135 bool empty() const;
146 bool OwnedBy(Node const* owner) const;
149 bool OwnedBy(Node const* owner1, Node const* owner2) const;
151 void Print() const { Print(1); }
152 void Print(int depth) const;
153 void Print(std::ostream&, int depth = 1) const;
157 inline static Node* NewImpl(Zone* zone, NodeId id, const Operator* op,
158 int input_count, NodePtrT const* inputs,
186 int input_index() const { return InputIndexField::decode(bit_field_); }
187 bool is_inline_use() const { return InlineField::decode(bit_field_); }
238 Node(NodeId id, const Operator* op, int inline_count, int inline_capacity);
239 Node(const Node&) = delete;
240 Node& operator=(const Node&) = delete;
242 inline Address inputs_location() const;
244 ZoneNodePtr* inline_inputs() const {
247 OutOfLineInputs* outline_inputs() const {
254 ZoneNodePtr const* GetInputPtrConst(int input_index) const {
274 void set_op(const Operator* op) { op_ = op; }
277 Type type() const { return type_; }
281 Mark mark() const { return mark_; }
284 inline bool has_inline_inputs() const {
293 static const int kOutlineMarker = InlineCountField::kMax;
294 static const int kMaxInlineCapacity = InlineCapacityField::kMax - 1;
296 const Operator* op_;
307 Address Node::inputs_location() const {
316 std::ostream& operator<<(std::ostream& os, const Node& n);
322 operator Node*() const { return node_; }
323 Node* operator->() const { return node_; }
326 Node* node() const { return node_; }
381 inline iterator begin() const;
382 inline iterator end() const;
384 bool empty() const { return count_ == 0; }
385 int count() const { return count_; }
387 inline value_type operator[](int index) const;
403 inline const_iterator begin() const;
404 inline const_iterator end() const;
406 bool empty() const { return count_ == 0; }
407 int count() const { return count_; }
409 inline value_type operator[](int index) const;
411 explicit Inputs(ZoneNodePtr const* input_root, int count)
415 ZoneNodePtr const* input_root_;
424 Node* from() const { return use_->from(); }
425 Node* to() const { return *input_ptr_; }
426 int index() const {
427 int const index = use_->input_index();
432 bool operator==(const Edge& other) { return input_ptr_ == other.input_ptr_; }
433 bool operator!=(const Edge& other) { return !(*this == other); }
460 bool Node::IsDead() const {
477 Node::Inputs Node::inputs() const {
496 iterator(const iterator& other) = default;
498 Edge operator*() const { return Edge(use_, input_ptr_); }
499 bool operator==(const iterator& other) const {
502 bool operator!=(const iterator& other) const { return !(*this == other); }
514 iterator operator+(difference_type offset) const {
517 difference_type operator-(const iterator& other) const {
532 Node::InputEdges::iterator Node::InputEdges::begin() const {
537 Node::InputEdges::iterator Node::InputEdges::end() const {
541 Edge Node::InputEdges::operator[](int index) const {
551 using pointer = const value_type*;
554 const_iterator(const const_iterator& other) = default;
556 Node* operator*() const { return *input_ptr_; }
557 bool operator==(const const_iterator& other) const {
560 bool operator!=(const const_iterator& other) const {
572 const_iterator operator+(difference_type offset) const {
575 difference_type operator-(const const_iterator& other) const {
582 explicit const_iterator(ZoneNodePtr const* input_ptr)
585 ZoneNodePtr const* input_ptr_;
589 Node::Inputs::const_iterator Node::Inputs::begin() const {
594 Node::Inputs::const_iterator Node::Inputs::end() const {
598 Node* Node::Inputs::operator[](int index) const { return input_root_[index]; }
603 iterator(const iterator& other) = default;
605 Edge operator*() const { return Edge(current_, current_->input_ptr()); }
606 bool operator==(const iterator& other) const {
609 bool operator!=(const iterator& other) const { return !(*this == other); }
631 Node::UseEdges::iterator Node::UseEdges::begin() const {
636 Node::UseEdges::iterator Node::UseEdges::end() const {
650 Node* operator*() const { return current_->from(); }
651 bool operator==(const const_iterator& other) const {
654 bool operator!=(const const_iterator& other) const {
690 Node::Uses::const_iterator Node::Uses::begin() const {
695 Node::Uses::const_iterator Node::Uses::end() const { return const_iterator(); }