compiler-tree-technologies / cil Goto Github PK
View Code? Open in Web Editor NEWGenerates CIL MLIR dialect from C/C++ source.
License: BSD 2-Clause "Simplified" License
Generates CIL MLIR dialect from C/C++ source.
License: BSD 2-Clause "Simplified" License
Hello,
Exciting project. I want to clone it, but I work on a windows machine, and there, the git clone command fails because of case-sensitive file naming. I think the problem is between clang/lib/codgen and clang/lib/CodGen directories. Could you please help me?
This is the console output after cloning:
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'clang/lib/CodeGen/CGClass.cpp'
'clang/lib/codegen/CGClass.cpp'
'clang/lib/CodeGen/CGDecl.cpp'
'clang/lib/codegen/CGDecl.cpp'
'clang/lib/CodeGen/CGExpr.cpp'
'clang/lib/codegen/CGExpr.cpp'
'clang/lib/CodeGen/CGStmt.cpp'
'clang/lib/codegen/CGStmt.cpp'
'clang/lib/CodeGen/CMakeLists.txt'
'clang/lib/codegen/CMakeLists.txt'
I got the following errors building cml clang tool on Ubuntu 20.04:
FAILED: tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/DialectRegistration.cpp.o
/usr/bin/c++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/lib/dialect/CIL -I/home/jason/cil/clang/lib/dialect/CIL -I/home/jason/cil/clang/include -Itools/clang/include -I/usr/include/libxml2 -Iinclude -I/home/jason/cil/llvm/include -isystem /home/jason/cil/llvm/../mlir/include -isystem tools/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -fno-exceptions -fno-rtti -UNDEBUG -std=c++14 -MD -MT tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/DialectRegistration.cpp.o -MF tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/DialectRegistration.cpp.o.d -o tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/DialectRegistration.cpp.o -c /home/jason/cil/clang/lib/dialect/CIL/DialectRegistration.cpp
In file included from /home/jason/cil/mlir/include/mlir/Dialect/LoopOps/LoopOps.h:20,
from /home/jason/cil/clang/include/clang/cil/dialect/CIL/CILOps.h:31,
from /home/jason/cil/clang/lib/dialect/CIL/DialectRegistration.cpp:28:
/home/jason/cil/mlir/include/mlir/Transforms/LoopLikeInterface.h:22:10: fatal error: mlir/Transforms/LoopLikeInterface.h.inc not found
22 | #include "mlir/Transforms/LoopLikeInterface.h.inc"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/191] Building CXX object tools/clan...iles/obj.MLIRCILOps.dir/CILTypes.cpp.o
FAILED: tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILTypes.cpp.o
/usr/bin/c++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/lib/dialect/CIL -I/home/jason/cil/clang/lib/dialect/CIL -I/home/jason/cil/clang/include -Itools/clang/include -I/usr/include/libxml2 -Iinclude -I/home/jason/cil/llvm/include -isystem /home/jason/cil/llvm/../mlir/include -isystem tools/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -fno-exceptions -fno-rtti -UNDEBUG -std=c++14 -MD -MT tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILTypes.cpp.o -MF tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILTypes.cpp.o.d -o tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILTypes.cpp.o -c /home/jason/cil/clang/lib/dialect/CIL/CILTypes.cpp
In file included from /home/jason/cil/mlir/include/mlir/IR/DialectImplementation.h:17,
from /home/jason/cil/clang/lib/dialect/CIL/CILTypes.cpp:30:
/home/jason/cil/mlir/include/mlir/IR/OpImplementation.h:741:10: fatal error: mlir/IR/OpAsmInterface.h.inc not found
741 | #include "mlir/IR/OpAsmInterface.h.inc"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[3/191] Building CXX object tools/clan...eFiles/obj.MLIRCILOps.dir/CILOps.cpp.o
FAILED: tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILOps.cpp.o
/usr/bin/c++ -DBUILD_EXAMPLES -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/clang/lib/dialect/CIL -I/home/jason/cil/clang/lib/dialect/CIL -I/home/jason/cil/clang/include -Itools/clang/include -I/usr/include/libxml2 -Iinclude -I/home/jason/cil/llvm/include -isystem /home/jason/cil/llvm/../mlir/include -isystem tools/mlir/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -fno-exceptions -fno-rtti -UNDEBUG -std=c++14 -MD -MT tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILOps.cpp.o -MF tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILOps.cpp.o.d -o tools/clang/lib/dialect/CIL/CMakeFiles/obj.MLIRCILOps.dir/CILOps.cpp.o -c /home/jason/cil/clang/lib/dialect/CIL/CILOps.cpp
In file included from /home/jason/cil/mlir/include/mlir/Dialect/LoopOps/LoopOps.h:20,
from /home/jason/cil/clang/include/clang/cil/dialect/CIL/CILOps.h:31,
from /home/jason/cil/clang/lib/dialect/CIL/CILOps.cpp:28:
/home/jason/cil/mlir/include/mlir/Transforms/LoopLikeInterface.h:22:10: fatal error: mlir/Transforms/LoopLikeInterface.h.inc not found
22 | #include "mlir/Transforms/LoopLikeInterface.h.inc"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Here is my procedure to build:
cmake -G Ninja ../llvm
-DLLVM_ENABLE_PROJECTS="mlir;clang"
-DBUILD_SHARED_LIBS=OFF
-DLLVM_BUILD_EXAMPLES=ON
-DLLVM_TARGETS_TO_BUILD="X86;NVPTX;AMDGPU"
-DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_ASSERTIONS=ON
ninja cml
And it's weird that the CPU usage and memory footprint can reach 97% during compilation
Using volatile
with global/local/arguments is dropped in CIL / MLIR / LLVM IR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.