Add support for 1-wide scalar target.

Issue #40.
This commit is contained in:
Gabe Weisz
2012-01-28 15:31:42 -05:00
committed by Matt Pharr
parent c96fef6bc8
commit c67a286aa6
5 changed files with 1025 additions and 4 deletions

View File

@@ -1659,7 +1659,7 @@ lAddFunctionParams(Declarator *decl) {
/** Add a symbol for the built-in mask variable to the symbol table */
static void lAddMaskToSymbolTable(SourcePos pos) {
const Type *t = g->target.isa == Target::GENERIC ?
const Type *t = g->target.maskBitCount == 1 ?
AtomicType::VaryingConstBool : AtomicType::VaryingConstUInt32;
Symbol *maskSymbol = new Symbol("__mask", pos, t);
m->symbolTable->AddVariable(maskSymbol);