Implement new naming scheme for --target.

Now targets are named like "<isa>-i<mask size>x<gang size>", e.g.
"sse4-i8x16", or "avx2-i32x16".

The old target names are still supported.
This commit is contained in:
Matt Pharr
2013-08-08 19:23:44 -07:00
parent 1d76f74b16
commit 0c5742b6f8
7 changed files with 163 additions and 100 deletions

12
ispc.h
View File

@@ -192,16 +192,16 @@ public:
Target(const char *arch, const char *cpu, const char *isa, bool pic);
/** Returns a comma-delimited string giving the names of the currently
supported target ISAs. */
static const char *SupportedTargetISAs();
supported compilation targets. */
static const char *SupportedTargets();
/** Returns a comma-delimited string giving the names of the currently
supported target CPUs. */
static std::string SupportedTargetCPUs();
supported CPUs. */
static std::string SupportedCPUs();
/** Returns a comma-delimited string giving the names of the currently
supported target architectures. */
static const char *SupportedTargetArchs();
supported architectures. */
static const char *SupportedArchs();
/** Returns a triple string specifying the target architecture, vendor,
and environment. */