tipc
A TIP to LLVM compiler
TypeConstraint.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "TipType.h"
4 
11 public:
12  TypeConstraint() = delete;
13  TypeConstraint(std::shared_ptr<TipType> l, std::shared_ptr<TipType> r);
14 
15  std::shared_ptr<TipType> lhs;
16  std::shared_ptr<TipType> rhs;
17  bool operator==(const TypeConstraint &other) const;
18  bool operator!=(const TypeConstraint &other) const;
19  friend std::ostream &operator<<(std::ostream &os, const TypeConstraint &obj);
20 };
A simple type constraint representation.
Definition: TypeConstraint.h:10
bool operator==(const TypeConstraint &other) const
Two constraints are equal if their underlying terms are equal.
Definition: TypeConstraint.cpp:13
bool operator!=(const TypeConstraint &other) const
Definition: TypeConstraint.cpp:17
TypeConstraint()=delete
friend std::ostream & operator<<(std::ostream &os, const TypeConstraint &obj)
Definition: TypeConstraint.cpp:21
std::shared_ptr< TipType > lhs
Definition: TypeConstraint.h:15
std::shared_ptr< TipType > rhs
Definition: TypeConstraint.h:16