Support of *-generic-16 target

This commit is contained in:
Vsevolod Livinskiy
2015-04-17 11:20:39 +03:00
parent 1d40f0a930
commit c2039da7b8
4 changed files with 98 additions and 23 deletions

7
ispc.h
View File

@@ -196,7 +196,7 @@ public:
/** Initializes the given Target pointer for a target of the given
name, if the name is a known target. Returns true if the
target was initialized and false if the name is unknown. */
Target(const char *arch, const char *cpu, const char *isa, bool pic);
Target(const char *arch, const char *cpu, const char *isa, bool pic, std::string genenricAsSmth = "");
/** Returns a comma-delimited string giving the names of the currently
supported compilation targets. */
@@ -255,6 +255,8 @@ public:
ISA getISA() const {return m_isa;}
std::string getTreatGenericAsSmth() const {return m_treatGenericAsSmth;}
std::string getArch() const {return m_arch;}
bool is32Bit() const {return m_is32Bit;}
@@ -316,6 +318,9 @@ private:
/** Instruction set being compiled to. */
ISA m_isa;
/** The variable shows if we use special mangling with generic target. */
std::string m_treatGenericAsSmth;
/** Target system architecture. (e.g. "x86-64", "x86"). */
std::string m_arch;