

def _replace_datalayout(llvmir):
    '\n    Find the line containing the datalayout and replace it\n    '
    lines = llvmir.splitlines()
    for (i, ln) in enumerate(lines):
        if ln.startswith('target datalayout'):
            tmp = 'target datalayout = "{0}"'
            lines[ln] = tmp.format(default_data_layout)
            break
    return '\n'.join(lines)

dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/nvvm.py _replace_datalayout/VarMisuse@50/101 `i`->`ln`