Codegen for all triangle variants

This commit is contained in:
Magnus Norddahl 2016-11-12 10:21:02 +01:00
commit eb4021b997
10 changed files with 308 additions and 72 deletions

View file

@ -195,3 +195,8 @@ SSAInt operator|(const SSAInt &a, const SSAInt &b)
{
return SSAInt::from_llvm(SSAScope::builder().CreateOr(a.v, b.v, SSAScope::hint()));
}
SSAInt operator~(const SSAInt &a)
{
return SSAInt::from_llvm(SSAScope::builder().CreateNot(a.v, SSAScope::hint()));
}