Target handling fixes.

Set the Module's target appropriately when it's first created.
Compile separate 32 and 64 bit versions of the builtins-c bitcocde
  and load the appropriate one based on the target we're compiling
  for.
This commit is contained in:
Matt Pharr
2011-08-15 16:03:50 +01:00
parent 46037c7a11
commit 04c93043d6
7 changed files with 99 additions and 53 deletions

3
ispc.h
View File

@@ -168,6 +168,9 @@ struct Target {
/** Target system architecture. (e.g. "x86-64", "x86"). */
std::string arch;
/** Is the target architecture 32 or 64 bit */
bool is32bit;
/** Target CPU. (e.g. "corei7", "corei7-avx", ..) */
std::string cpu;