def METHOD_NAME(self, val: str):
    """
    Constructs an llvm.global operation containing the string. Assigns a unique
    symbol name to the value that is derived from the string value.
    """
    data = val.encode() + b"\x00"
    t_type = builtin.TensorType.from_type_and_list(i8, [len(data)])
    return llvm.GlobalOp(
        llvm.LLVMArrayType.from_size_and_type(len(data), i8),
        _key_from_str(val),
        constant=True,
        linkage="internal",
        value=builtin.DenseIntOrFPElementsAttr.from_list(t_type, data),
    )