From 82c46f0f2efd2a9f0b998031fa6615f3c2ddf720 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 3 Nov 2004 16:14:40 +0000 Subject: [PATCH] Top level files for building natively on win32 llvm-svn: 17447 --- win32/README.txt | 48 +++++++++++++++++ win32/llvm.sln | 134 +++++++++++++++++++++++++++++++++++++++++++++++ win32/llvm.suo | Bin 0 -> 30208 bytes win32/unistd.h | 1 + 4 files changed, 183 insertions(+) create mode 100644 win32/README.txt create mode 100644 win32/llvm.sln create mode 100644 win32/llvm.suo create mode 100644 win32/unistd.h diff --git a/win32/README.txt b/win32/README.txt new file mode 100644 index 00000000000..9c787855f91 --- /dev/null +++ b/win32/README.txt @@ -0,0 +1,48 @@ +Directory structure +=================== +Although I have made every effort not to use absolute paths, I have only tested building +with my own directory structure and it looks like this: + +c:\project\llvm ; Main project directory +c:\project\llvm\win32 ; win32 project +c:\project\llvm\win32\tools ; flex, bison and sed live here +c:\project\llvm\win32\share ; flex, bison and sed support files + +Requirements +============ + +You need flex, sed and bison - I'm using the GnuWin32 versions of these tools which can be obtained from + +http://gnuwin32.sourceforge.net/ + +Limitations +============ + +At the moment only the core LLVM libraries and the tablegen executable are built. If anyone has time to +port the rest of the LLVM tools it would be great... + +Other notes +=========== + +When linking with your own application it is of the utmost importance that you use the same runtime +libraries in compiling LLVM as in your own project. Otherwise you will get a lot of errors. To change this, +just mark all the projects except the Config project (since it doesn't use the C compiler) in the +solution explorer, select properties - then go to the C/C++ options and the Code Generation sub option page. +In the Runtime Library (6th from the top) select the appropriate version. Then change the active +configuration to Release (in the top left corner of the properties window) and select the appropriate +runtime library for the release version. + +When linking with your applications, you need to force a symbol reference to bring in the x86 backend. +Open the properties for your main project and select the Linker options - under the Input options there +is a Force Symbol References field where you need to enter _X86TargetMachineModule. If anyone has a better +suggestion for how to trick the linker into always pulling in these objects, I'd be grateful... + +Contact Information +=================== + +please contact me at this address if you have any questions: + +morten@hue.no + + +-- Morten Ofstad 2.11.2004 diff --git a/win32/llvm.sln b/win32/llvm.sln new file mode 100644 index 00000000000..ca3743c5c50 --- /dev/null +++ b/win32/llvm.sln @@ -0,0 +1,134 @@ +Microsoft Visual Studio Solution File, Format Version 8.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Support", "Support\Support.vcproj", "{28AA9146-3482-4F41-9CC6-407B1D258508}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TableGen", "TableGen\TableGen.vcproj", "{339C2249-26B6-4172-B484-85653029AF57}" + ProjectSection(ProjectDependencies) = postProject + {28AA9146-3482-4F41-9CC6-407B1D258508} = {28AA9146-3482-4F41-9CC6-407B1D258508} + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + {0F8407F3-FA23-4CF1-83A9-DCBE0B361489} = {0F8407F3-FA23-4CF1-83A9-DCBE0B361489} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Fibonacci", "Fibonacci\Fibonacci.vcproj", "{48FB551D-E37E-42EC-BC97-FF7219774867}" + ProjectSection(ProjectDependencies) = postProject + {0622E827-8464-489D-8B1C-B0B496F35C08} = {0622E827-8464-489D-8B1C-B0B496F35C08} + {28AA9146-3482-4F41-9CC6-407B1D258508} = {28AA9146-3482-4F41-9CC6-407B1D258508} + {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4} = {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4} + {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897} = {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897} + {C59374C1-9FC0-4147-B836-327DFDC52D99} = {C59374C1-9FC0-4147-B836-327DFDC52D99} + {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB} = {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB} + {76295AE8-A083-460E-9F80-6F2B8923264A} = {76295AE8-A083-460E-9F80-6F2B8923264A} + {0F8407F3-FA23-4CF1-83A9-DCBE0B361489} = {0F8407F3-FA23-4CF1-83A9-DCBE0B361489} + {144EEBF6-8C9B-4473-B715-2C821666AF6C} = {144EEBF6-8C9B-4473-B715-2C821666AF6C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ExecutionEngine", "ExecutionEngine\ExecutionEngine.vcproj", "{76295AE8-A083-460E-9F80-6F2B8923264A}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VMCore", "VMCore\VMCore.vcproj", "{45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Target", "Target\Target.vcproj", "{059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + {144EEBF6-8C9B-4473-B715-2C821666AF6C} = {144EEBF6-8C9B-4473-B715-2C821666AF6C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CodeGen", "CodeGen\CodeGen.vcproj", "{08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "System", "System\System.vcproj", "{0F8407F3-FA23-4CF1-83A9-DCBE0B361489}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Analysis", "Analysis\Analysis.vcproj", "{0622E827-8464-489D-8B1C-B0B496F35C08}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "x86", "x86\x86.vcproj", "{144EEBF6-8C9B-4473-B715-2C821666AF6C}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + {339C2249-26B6-4172-B484-85653029AF57} = {339C2249-26B6-4172-B484-85653029AF57} + {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897} = {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897} + {C59374C1-9FC0-4147-B836-327DFDC52D99} = {C59374C1-9FC0-4147-B836-327DFDC52D99} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Transforms", "Transforms\Transforms.vcproj", "{C59374C1-9FC0-4147-B836-327DFDC52D99}" + ProjectSection(ProjectDependencies) = postProject + {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Configure", "Configure\Configure.vcproj", "{19514E48-456C-4B9D-8637-F2285476461E}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + Debug = Debug + Release = Release + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {28AA9146-3482-4F41-9CC6-407B1D258508}.Debug.ActiveCfg = Debug|Win32 + {28AA9146-3482-4F41-9CC6-407B1D258508}.Debug.Build.0 = Debug|Win32 + {28AA9146-3482-4F41-9CC6-407B1D258508}.Release.ActiveCfg = Release|Win32 + {28AA9146-3482-4F41-9CC6-407B1D258508}.Release.Build.0 = Release|Win32 + {339C2249-26B6-4172-B484-85653029AF57}.Debug.ActiveCfg = Debug|Win32 + {339C2249-26B6-4172-B484-85653029AF57}.Debug.Build.0 = Debug|Win32 + {339C2249-26B6-4172-B484-85653029AF57}.Release.ActiveCfg = Release|Win32 + {339C2249-26B6-4172-B484-85653029AF57}.Release.Build.0 = Release|Win32 + {48FB551D-E37E-42EC-BC97-FF7219774867}.Debug.ActiveCfg = Debug|Win32 + {48FB551D-E37E-42EC-BC97-FF7219774867}.Debug.Build.0 = Debug|Win32 + {48FB551D-E37E-42EC-BC97-FF7219774867}.Release.ActiveCfg = Release|Win32 + {48FB551D-E37E-42EC-BC97-FF7219774867}.Release.Build.0 = Release|Win32 + {76295AE8-A083-460E-9F80-6F2B8923264A}.Debug.ActiveCfg = Debug|Win32 + {76295AE8-A083-460E-9F80-6F2B8923264A}.Debug.Build.0 = Debug|Win32 + {76295AE8-A083-460E-9F80-6F2B8923264A}.Release.ActiveCfg = Release|Win32 + {76295AE8-A083-460E-9F80-6F2B8923264A}.Release.Build.0 = Release|Win32 + {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB}.Debug.ActiveCfg = Debug|Win32 + {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB}.Debug.Build.0 = Debug|Win32 + {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB}.Release.ActiveCfg = Release|Win32 + {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB}.Release.Build.0 = Release|Win32 + {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4}.Debug.ActiveCfg = Debug|Win32 + {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4}.Debug.Build.0 = Debug|Win32 + {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4}.Release.ActiveCfg = Release|Win32 + {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4}.Release.Build.0 = Release|Win32 + {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897}.Debug.ActiveCfg = Debug|Win32 + {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897}.Debug.Build.0 = Debug|Win32 + {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897}.Release.ActiveCfg = Release|Win32 + {08CEB1BB-C2A4-4587-B9A9-AEDB8FB44897}.Release.Build.0 = Release|Win32 + {0F8407F3-FA23-4CF1-83A9-DCBE0B361489}.Debug.ActiveCfg = Debug|Win32 + {0F8407F3-FA23-4CF1-83A9-DCBE0B361489}.Debug.Build.0 = Debug|Win32 + {0F8407F3-FA23-4CF1-83A9-DCBE0B361489}.Release.ActiveCfg = Release|Win32 + {0F8407F3-FA23-4CF1-83A9-DCBE0B361489}.Release.Build.0 = Release|Win32 + {0622E827-8464-489D-8B1C-B0B496F35C08}.Debug.ActiveCfg = Debug|Win32 + {0622E827-8464-489D-8B1C-B0B496F35C08}.Debug.Build.0 = Debug|Win32 + {0622E827-8464-489D-8B1C-B0B496F35C08}.Release.ActiveCfg = Release|Win32 + {0622E827-8464-489D-8B1C-B0B496F35C08}.Release.Build.0 = Release|Win32 + {144EEBF6-8C9B-4473-B715-2C821666AF6C}.Debug.ActiveCfg = Debug|Win32 + {144EEBF6-8C9B-4473-B715-2C821666AF6C}.Debug.Build.0 = Debug|Win32 + {144EEBF6-8C9B-4473-B715-2C821666AF6C}.Release.ActiveCfg = Release|Win32 + {144EEBF6-8C9B-4473-B715-2C821666AF6C}.Release.Build.0 = Release|Win32 + {C59374C1-9FC0-4147-B836-327DFDC52D99}.Debug.ActiveCfg = Debug|Win32 + {C59374C1-9FC0-4147-B836-327DFDC52D99}.Debug.Build.0 = Debug|Win32 + {C59374C1-9FC0-4147-B836-327DFDC52D99}.Release.ActiveCfg = Release|Win32 + {C59374C1-9FC0-4147-B836-327DFDC52D99}.Release.Build.0 = Release|Win32 + {19514E48-456C-4B9D-8637-F2285476461E}.Debug.ActiveCfg = Configure|Win32 + {19514E48-456C-4B9D-8637-F2285476461E}.Debug.Build.0 = Configure|Win32 + {19514E48-456C-4B9D-8637-F2285476461E}.Release.ActiveCfg = Configure|Win32 + {19514E48-456C-4B9D-8637-F2285476461E}.Release.Build.0 = Configure|Win32 + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection +EndGlobal diff --git a/win32/llvm.suo b/win32/llvm.suo new file mode 100644 index 0000000000000000000000000000000000000000..d1bb1247c7e81fc1cb2f66e33d63be526204f0b0 GIT binary patch literal 30208 zcmeI5Yj|8m8OKjrkWzRml$(^>0;LqBC24LAmtuCaDJ_&sQ(C|X=H8Sf8x@H$cD(DuQ^yOYs4pNBM{!ydVPc_n+C>J-gZLp3ONeRQBZg@0l|* zXWp52-g#%{otcxTp4{`fTke_nyq9+^^JaRlP3-Eu#phpzTQJuio;L%>Oz_&o#Dw+q zJe-wl2jal1v z4grUPdEg)*IS~#{yN}|2VA?$u%N7&?E`-4WX6f}VY zz*OnK+5K00DgMUbZ_*p$KH_bHTfwh=kr>BA)qAn4`rcb_TKMo|Rni#`t8%!`fMUwq z;H`jqFRr9_u?-0LyDwVE(bqlTYesezca7KKjd~Y&r+WR|$Go%n?IBOjf3!q`^Sv2W zl6|$Ap!B6f6<^m1Z>`tnt@2vZoESFL$Ebz4;mk$p{Mgu&e~*TKx#jokYu6@KC(;A% z`AccHbb#8w^ni4L+|mQm0c!s)zH9$_mKok246Fi2 z0KLC}`;lNFkdBb9kq&U}UpnD5;M%|RfxrDrADjYQ`#%o%@!$k-B3K4a0`CB#7w4V; zEg%V6!E$giSOHc7#XB{9zk~bf;0$mkSPk018gLd^3)X?N!L#68@J`SU-UZGB=Yw~H z4$uj@fN1n^?*)BeJ?IA;zy)9c3cxHHu;(j8mfKO}~Gy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N{Yx`=B+oONX`aY^_>#rnY3M3Sx)L zYA5NxsHldoiRkhYt|p>d^eAWc9Nkh&_}O!mc?nk&>ak^;l@&qquf-_!!d5#uTe;ed z?B{W`Rh-Z!(|2o;EP;>gFr{lk`%SGKqnfv)q8h$UM34>znORNpLkJ?)RBTN<=ro-TXTHpMQsYkazRr$o?q$2N0lpet4nhAv_&@|Ji{;aZCA$zD|?w z4}#Lan7EF9?zWp!)Fy{>{<3WQ=lgy1-|XjSE9)Q9-<9**;==#?srO3%H@W`{tN+~B zU2-+EHn#{mi?RU(-6Y}fjdD-2bpceykz+xkSHJea9rpd;`zLqw?>BAF`KLSTa}gs)_bqwxI|e521NZM>uY5WivN}>qjskGDo0KhE;761SM literal 0 HcmV?d00001 diff --git a/win32/unistd.h b/win32/unistd.h new file mode 100644 index 00000000000..66674acd4dc --- /dev/null +++ b/win32/unistd.h @@ -0,0 +1 @@ +// This file has to be here because it's #included from the auto generated FileLexer.cpp \ No newline at end of file