code: def gep(self, i):
          
          if not isinstance(i.type, IntType):
              raise TypeError(i.type)
          return self.elements[i.constant]
docs: Resolve the type of the i-th element (for getelementptr lookups).
  
          *i* needs to be a LLVM constant, so that the type can be determined
          at compile-time.