Update LLVM to c68d2895a1f4019b387c69d1e5eec31b0eb5e7b0 (#685)

* Need to include a new header in LLHD sim for LLVM translations
* Need to explicitly register the LLVM translations
This commit is contained in:
mikeurbach 2021-02-26 10:31:28 -07:00 committed by GitHub
parent d909c88dee
commit 015ea05523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

2
llvm

@ -1 +1 @@
Subproject commit 5652e192fc22ed2281192d5fe80c7ea76bbbe719
Subproject commit c68d2895a1f4019b387c69d1e5eec31b0eb5e7b0

View File

@ -21,6 +21,7 @@
#include "mlir/Pass/PassManager.h"
#include "mlir/Support/FileUtilities.h"
#include "mlir/Target/LLVMIR.h"
#include "mlir/Target/LLVMIR/Export.h"
#include "mlir/Transforms/Passes.h"
#include "llvm/Support/InitLLVM.h"
@ -163,6 +164,7 @@ int main(int argc, char **argv) {
// Load the dialects
context
.loadDialect<llhd::LLHDDialect, LLVM::LLVMDialect, StandardOpsDialect>();
mlir::registerLLVMDialectTranslation(context);
OwningModuleRef module(parseSourceFile(mgr, &context));