Menu

Tree [r4] /
 History

HTTPS access


File Date Author Commit
 test 2011-01-19 andy_thomason [r4] update to move to llvm 2.8
 AnalysisWrappers.cpp 2011-01-02 andy_thomason [r1] Coldcode project.
 BuildInterperter.inl 2011-01-19 andy_thomason [r4] update to move to llvm 2.8
 CMakeLists.txt 2011-01-02 andy_thomason [r1] Coldcode project.
 GraphPrinters.cpp 2011-01-02 andy_thomason [r1] Coldcode project.
 Makefile 2011-01-02 andy_thomason [r1] Coldcode project.
 PrintSCC.cpp 2011-01-02 andy_thomason [r1] Coldcode project.
 README 2011-01-02 andy_thomason [r2] Coldcode: add README and test data (opt.ll)
 StatsPass.inl 2011-01-19 andy_thomason [r4] update to move to llvm 2.8
 opt.cpp 2011-01-19 andy_thomason [r4] update to move to llvm 2.8

Read Me

Cold code project.

To build:

cd \
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm\tools
svn co https://coldcode.svn.sourceforge.net/svnroot/coldcode coldcode 
mkdir llvm-obj
cmake -G "Visual Studio 9 2008" -DLLVM_TARGETS_TO_BUILD="CBackend" ..\llvm
llvm.sln

Build coldcode project by right clicking -> Build

This makes llvm-obj\in\Debug\coldcode.exe


I used llvm-gcc to make some .ll files

for example:

llvm-gcc -fno-exceptions -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DWIN32 -D_WINDOWS -D_DEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -DCRT_NONSTDC_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -DCMAKE_INTDIR=\"Debug\" -DHAVE_SYS_TYPES_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_UINT64_T -I\llvm\include -I\llvm-obj\include \llvm\tools\opt\opt.cpp -S --emit-llvm -o opt.ll

we can generate stats with:

\llvm-obj\bin\Debug\coldcode -O3 opt.ll -o 1.bc 2>1
sort 1 | uniq -c | sort -n >2
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.