class_docstr: Auxiliary builder to build IR for testing and dev.
  
  Examples
  --------
  .. code-block:: python
  
      ib = tvm.tir.ir_builder.create()
      n = te.var("n")
      A = ib.allocate("float32", n, name="A")
      with ib.for_range(0, n, name="i") as i:
          with ib.if_scope((i % 2) == 0):
              A[i] = A[i] + 1
      # The result stmt.
      stmt = ib.get()
docstr: Create a while loop scope.
  
  Parameters
  ----------
  condition : Expr
      The termination condition.
  
  Returns
  -------
  loop_scope : With.Scope of Var
      The while scope.
  
  Examples
  --------
  .. code-block:: python
  
      ib = tvm.tir.ir_builder.create()
      iterations = ib.allocate("int32", (1,), name="iterations", scope="local")
      with ib.while_loop(iterations[0] < 10):
          iterations[0] += 1
code: def while_loop(self, condition):
      """Create a while loop scope.
  
      Parameters
      ----------
      condition : Expr
          The termination condition.
  
      Returns
      -------
      loop_scope : With.Scope of Var
          The while scope.
  
      Examples
      --------
      .. code-block:: python
  
          ib = tvm.tir.ir_builder.create()
          iterations = ib.allocate("int32", (1,), name="iterations", scope="local")
          with ib.while_loop(iterations[0] < 10):
              iterations[0] += 1
      """
      self._seq_stack.append([])
  
      def _exit_cb():
          self.emit(_stmt.While(condition, self._pop_seq()))
  
      return WithScope(None, _exit_cb)
  
imports: import tvm
  from tvm._ffi.base import string_types
  from tvm.runtime import ObjectGeneric, convert, const
  from tvm.ir import container
  from .None import stmt
  from .None import expr
  from .None import buffer
  from .None import op
label_desc: Use image node_id 6 for calling the IRBuilder obj's underlying member method code with example usage: obj.while_loop(condition) and returns: WithScope