code: def gep(self, indices):
          
          if not isinstance(self.type, types.PointerType):
              raise TypeError("can only call gep() on pointer constants, not '%s'"
                              % (self.type,))
  
          outtype = self.type
          for i in indices:
              outtype = outtype.gep(i)
  
          strindices = ["{0} {1}".format(idx.type, idx.get_reference())
                        for idx in indices]
  
          op = "getelementptr ({0}, {1} {2}, {3})".format(
              self.type.pointee, self.type,
              self.get_reference(), ', '.join(strindices))
          return FormattedConstant(outtype.as_pointer(self.addrspace), op)
docs: Call getelementptr on this pointer constant.