Beispiel #1
0
# =====================================================================================================================
# Generate GFX-independent LLVM emulation library
# =====================================================================================================================

# Generate .ll files
print(
    "*******************************************************************************"
)
print(
    "                 Generate LLVM Emulation IR (GLSL Arithmetic)                  "
)
print(
    "*******************************************************************************"
)
genGlslArithOpEmuCode.main("./script/genGlslArithOpEmuCode.txt",
                           "g_glslArithOpEmu.ll", "std32")
genGlslArithOpEmuCode.main("./script/genGlslArithOpEmuCodeF16.txt",
                           "g_glslArithOpEmuF16.ll", "float16")
genGlslArithOpEmuCode.main("./script/genGlslArithOpEmuCodeF64.txt",
                           "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"))
Beispiel #2
0
# =====================================================================================================================
# Generate GFX-independent LLVM emulation library
# =====================================================================================================================

# Generate .ll files
print(
    "*******************************************************************************"
)
print(
    "                 Generate LLVM Emulation IR (GLSL Arithmetic)                  "
)
print(
    "*******************************************************************************"
)
genGlslArithOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslArithOpEmuCode.txt"), OUTPUT_DIR,
    "std32")
genGlslArithOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslArithOpEmuCodeF16.txt"), OUTPUT_DIR,
    "float16")
genGlslArithOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslArithOpEmuCodeF64.txt"), OUTPUT_DIR,
    "float64")
genGlslArithOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslArithOpEmuCodeI8.txt"), OUTPUT_DIR,
    "int8")
genGlslArithOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslArithOpEmuCodeI16.txt"), OUTPUT_DIR,
    "int16")
genGlslArithOpEmuCode.main(
    os.path.join(INPUT_DIR, "script/genGlslArithOpEmuCodeI64.txt"), OUTPUT_DIR,
Beispiel #3
0
# =====================================================================================================================
# Generate GFX-independent LLVM emulation library
# =====================================================================================================================

# Generate .ll files
print(
    "*******************************************************************************"
)
print(
    "                 Generate LLVM Emulation IR (GLSL Arithmetic)                  "
)
print(
    "*******************************************************************************"
)
genGlslArithOpEmuCode.main("./script/genGlslArithOpEmuCode.txt",
                           "g_glslArithOpEmu.ll", "std32")
genGlslArithOpEmuCode.main("./script/genGlslArithOpEmuCodeF64.txt",
                           "g_glslArithOpEmuF64.ll", "float64")

# Generate .lib file
print(
    "*******************************************************************************"
)
print(
    "                   Generate LLVM Emulation Library (Common)                    "
)
print(
    "*******************************************************************************"
)

# Assemble .ll files to .bc files