working on compiler; need to add CFG and cross-lane behavior passes
[kazan.git] / shader-compiler-backend / src / lib.rs
index 72ab36eaa679609b59b3e2d891791604ddb3d3fe..09dcbe8d1c1dda1b04aa995b3849e9621d1c8a8d 100644 (file)
@@ -21,6 +21,11 @@ pub trait AttachedBuilder<'a>: Sized {
     type Context: Context<'a>;
     /// get the current `BasicBlock`
     fn current_basic_block(&self) -> <Self::Context as Context<'a>>::BasicBlock;
+    /// build an alloca instruction
+    fn build_alloca(
+        &mut self,
+        variable_type: <Self::Context as Context<'a>>::Type,
+    ) -> <Self::Context as Context<'a>>::Value;
     /// build a return instruction
     fn build_return(
         self,