tipc
A TIP to LLVM compiler
ConstraintUnifier.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "ConstraintHandler.h"
4 #include "TypeConstraint.h"
5 #include "Unifier.h"
6 
13 public:
14  void handle(std::shared_ptr<TipType> t1,
15  std::shared_ptr<TipType> t2) override;
16 
17 private:
18  Unifier unifier;
19 };
Abstract class for handling type constraints as they are generated.
Definition: ConstraintHandler.h:11
A constraint handler to unify constraints on the fly.
Definition: ConstraintUnifier.h:12
void handle(std::shared_ptr< TipType > t1, std::shared_ptr< TipType > t2) override
Definition: ConstraintUnifier.cpp:3
Class used to solve type constraints and establish typability.
Definition: Unifier.h:19