Small cleanup: allocate storage for the full mask in the FunctionEmitContext constructor

This commit is contained in:
Matt Pharr
2011-12-10 13:33:28 -08:00
parent 034507a35b
commit f6605ee465
3 changed files with 13 additions and 11 deletions

6
ctx.h
View File

@@ -98,9 +98,9 @@ public:
the function entry mask and the internal mask. */
llvm::Value *GetFullMask();
/** Provides the alloca'd pointer to memory to store the full function
mask. This is only used to wire up the __mask builtin variable. */
void SetMaskPointer(llvm::Value *p);
/** Returns a pointer to storage in memory that stores the current full
mask. */
llvm::Value *GetFullMaskPointer();
/** Provides the value of the mask at function entry */
void SetFunctionMask(llvm::Value *val);