Install HomeBrew first
brew update
brew tap caskroom/cask
brew install brew-cask
If you get the error "already installed", follow the instructions to unlink it, then install again:
require "benchmark" | |
lib IntIntrinsics | |
{% for oper in %i(sadd ssub smul) %} | |
{% for name, type in {i16: Int16, i32: Int32, i64: Int64} %} | |
fun {{oper.id}}_with_overflow_{{name}} = "llvm.{{oper.id}}.with.overflow.{{name}}"(a : {{type}}, b : {{type}}) : { {{type}}, Bool } | |
{% end %} | |
{% end %} | |
{% for oper in %i(uadd usub umul) %} | |
{% for name, type in {i16: UInt16, i32: UInt32, i64: UInt64} %} |
Install HomeBrew first
brew update
brew tap caskroom/cask
brew install brew-cask
If you get the error "already installed", follow the instructions to unlink it, then install again: