all: add LLVM 12 support

Originally based on a PR by @QuLogic, but extended a lot to get all
tests to pass.
This commit is contained in:
Ayke van Laethem
2021-03-28 19:56:03 -04:00
committed by Ron Evans
parent 74b20ca234
commit 5127b9d65b
16 changed files with 91 additions and 46 deletions
+1
View File
@@ -71,6 +71,7 @@ func runTest(t *testing.T, pathPrefix string) {
defer pm.Dispose()
pm.AddGlobalOptimizerPass()
pm.AddDeadStoreEliminationPass()
pm.AddAggressiveDCEPass()
pm.Run(mod)
// Read the expected output IR.