Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tslang/lib/TypeScript/MLIRGen.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "MLIRGenImpl.h"


// TODO: optimize of amount of calls to detect return types and if it is was calculated before then do not run it all
// the time
static CompileOptions *compileOptionsPtr = nullptr;
Expand Down
5 changes: 5 additions & 0 deletions tslang/lib/TypeScript/MLIRGenExpressions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#include "MLIRGenImpl.h"

#include "mlir/Dialect/Async/IR/Async.h"

#undef DEBUG_TYPE
#define DEBUG_TYPE "mlir"

namespace typescript
{
namespace mlirgen
Expand Down
13 changes: 0 additions & 13 deletions tslang/lib/TypeScript/MLIRGenImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "TypeScript/TypeScriptDialect.h"
#include "TypeScript/TypeScriptOps.h"
#include "TypeScript/DiagnosticHelper.h"
#include "TypeScript/ObjDumper.h"

#include "TypeScript/MLIRLogic/MLIRCodeLogic.h"
#include "TypeScript/MLIRLogic/MLIRGenContext.h"
Expand All @@ -24,7 +23,6 @@
#include "TypeScript/MLIRLogic/MLIRTypeHelper.h"
#include "TypeScript/MLIRLogic/MLIRValueGuard.h"
#include "TypeScript/MLIRLogic/MLIRDebugInfoHelper.h"
#include "TypeScript/MLIRLogic/MLIRRTTIHelperVC.h"
#include "TypeScript/MLIRLogic/MLIRPrinter.h"
#include "TypeScript/MLIRLogic/MLIRDeclarationPrinter.h"
#include "TypeScript/MLIRLogic/TypeOfOpHelper.h"
Expand All @@ -47,15 +45,11 @@
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/Types.h"
#include "mlir/IR/Verifier.h"

#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/DLTI/DLTI.h"
#include "mlir/IR/Diagnostics.h"
#ifdef ENABLE_ASYNC
#include "mlir/Dialect/Async/IR/Async.h"
#endif

#include "llvm/ADT/STLExtras.h"
Expand All @@ -64,21 +58,14 @@
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/raw_ostream.h"
#include "mlir/Support/FileUtilities.h"
#include "llvm/Support/ToolOutputFile.h"
//#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/Support/WithColor.h"

#include "TypeScript/MLIRLogic/MLIRGenContextDefines.h"

#include <algorithm>
#include <iterator>
#include <numeric>
#include <set>
#include <type_traits>

#define DEBUG_TYPE "mlir"
Expand Down
14 changes: 14 additions & 0 deletions tslang/lib/TypeScript/MLIRGenModule.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
// Module, discovery, include/import driver methods of MLIRGenImpl (see MLIRGenImpl.h).

#include "TypeScript/ObjDumper.h"

#include "MLIRGenImpl.h"



#include "mlir/IR/Verifier.h"
#include "mlir/Dialect/DLTI/DLTI.h"
#include "mlir/Support/FileUtilities.h"

#include "llvm/Support/FileSystem.h"
#include "llvm/Support/DynamicLibrary.h"
#include "llvm/Support/ToolOutputFile.h"

#include <set>

namespace typescript
{
namespace mlirgen
Expand Down
7 changes: 7 additions & 0 deletions tslang/lib/TypeScript/MLIRGenStatements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

#include "MLIRGenImpl.h"

#include "TypeScript/MLIRLogic/MLIRRTTIHelperVC.h"

#include "mlir/Dialect/Async/IR/Async.h"

#undef DEBUG_TYPE
#define DEBUG_TYPE "mlir"

namespace typescript
{
namespace mlirgen
Expand Down
Loading