Ejemplo n.º 1
0
)
genGlslGroupOpEmuCode.main(16, 64, OUTPUT_DIR)
genGlslGroupOpEmuCode.main(32, 64, OUTPUT_DIR)
genGlslGroupOpEmuCode.main(64, 64, OUTPUT_DIR)

print(
    "*******************************************************************************"
)
print(
    "                   Generate LLVM Emulation IR (GLSL Image) for %s             "
    % ("GFX6"))
print(
    "*******************************************************************************"
)
genGlslImageOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslImageOpEmuCode.txt"), OUTPUT_DIR,
    "gfx6")

print(
    "*******************************************************************************"
)
print(
    "                   Generate LLVM Emulation IR (GLSL Image) for %s             "
    % ("GFX9"))
print(
    "*******************************************************************************"
)
genGlslImageOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslImageOpEmuCode.txt"),
    os.path.join(OUTPUT_DIR, "gfx9"), "gfx9")
Ejemplo n.º 2
0
# Generate GFX-dependent LLVM emulation library
# =====================================================================================================================

# Assemble .ll files to .bc files and link emulation .bc files to libraries
GFX_EMUS = ["gfx6", "gfx9"]
for gfx in GFX_EMUS:
    print(
        "*******************************************************************************"
    )
    print(
        "                   Generate LLVM Emulation IR (GLSL Image) for %s             "
        % (gfx.upper()))
    print(
        "*******************************************************************************"
    )
    genGlslImageOpEmuCode.main("./script/genGlslImageOpEmuCode.txt",
                               "%s/g_glslImageOpEmu.ll" % (gfx), gfx)

    print(
        "*******************************************************************************"
    )
    print(
        "                    Generate LLVM Emulation Library (%s)                     "
        % (gfx.upper()))
    print(
        "*******************************************************************************"
    )

    # Assemble .ll files to .bc files
    for f in os.listdir(gfx):
        if f.endswith(".ll"):
            cmd = LLVM_AS + " " + gfx + "/" + f
Ejemplo n.º 3
0
                           "g_glslArithOpEmuF64.ll", "float64")
genGlslArithOpEmuCode.main("./script/genGlslArithOpEmuCodeI16.txt",
                           "g_glslArithOpEmuI16.ll", "int16")
genGlslArithOpEmuCode.main("./script/genGlslArithOpEmuCodeI64.txt",
                           "g_glslArithOpEmuI64.ll", "int64")

print(
    "*******************************************************************************"
)
print(
    "                   Generate LLVM Emulation IR (GLSL Image) for %s             "
    % ("GFX6"))
print(
    "*******************************************************************************"
)
genGlslImageOpEmuCode.main("./script/genGlslImageOpEmuCode.txt",
                           "g_glslImageOpEmu.ll", "gfx6")

print(
    "*******************************************************************************"
)
print(
    "                   Generate LLVM Emulation IR (GLSL Image) for %s             "
    % ("GFX9"))
print(
    "*******************************************************************************"
)
genGlslImageOpEmuCode.main("./script/genGlslImageOpEmuCode.txt",
                           "gfx9/g_glslImageOpEmu.ll", "gfx9")

# Generate .lib file
print(
Ejemplo n.º 4
0
    "*******************************************************************************"
)
genGlslGroupOpEmuCode.main(16, 64, "")
genGlslGroupOpEmuCode.main(32, 64, "")
genGlslGroupOpEmuCode.main(64, 64, "")

print(
    "*******************************************************************************"
)
print(
    "                   Generate LLVM Emulation IR (GLSL Image) for %s             "
    % ("GFX6"))
print(
    "*******************************************************************************"
)
genGlslImageOpEmuCode.main("./script/genGlslImageOpEmuCode.txt", ".", "gfx6")

print(
    "*******************************************************************************"
)
print(
    "                   Generate LLVM Emulation IR (GLSL Image) for %s             "
    % ("GFX9"))
print(
    "*******************************************************************************"
)
genGlslImageOpEmuCode.main("./script/genGlslImageOpEmuCode.txt", "gfx9",
                           "gfx9")

# Generate .lib file
print(