Add support for LLVM 12

This commit is contained in:
Martin Kinkelin 2021-02-11 11:22:25 +01:00
parent 8d71c8624a
commit d8bc064cfb
21 changed files with 3493 additions and 60 deletions

View file

@ -32,6 +32,14 @@
#include "llvm/Support/Path.h"
#include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/YAMLTraits.h"
#if LDC_MLIR_ENABLED
#if LDC_LLVM_VER >= 1200
#include "mlir/IR/BuiltinOps.h"
#else
#include "mlir/IR/Module.h"
#endif
#include "mlir/IR/MLIRContext.h"
#endif
namespace {