summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h
index 16ff693c6e4..7eb65f36880 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h
+++ b/src/gallium/drivers/swr/rasterizer/jitter/builder_misc.h
@@ -49,6 +49,12 @@ Constant *C(const std::initializer_list<Ty> &constList)
return ConstantVector::get(vConsts);
}
+template<typename Ty>
+Constant *CA(LLVMContext& ctx, ArrayRef<Ty> constList)
+{
+ return ConstantDataArray::get(ctx, constList);
+}
+
Constant *PRED(bool pred);
Value *VIMMED1(int i);