Merge pull request #1024 from Vsevolod-Livinskij/multitarget
Support of *-generic-16 target
This commit is contained in:
7
ispc.h
7
ispc.h
@@ -207,7 +207,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. */
|
||||
@@ -266,6 +266,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;}
|
||||
@@ -327,6 +329,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user