summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/SConscript
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-03-15 01:12:59 -0500
committerTim Rowley <[email protected]>2017-03-20 18:05:54 -0500
commit2776d945456591d777b0e9767a2076b183027296 (patch)
treec2a49ad5cf3b1ca8e2e59e7fd3502a00c3bd1864 /src/gallium/drivers/swr/SConscript
parent9538ba9bd14b7179edce10f05706b68f4719382a (diff)
swr: [rasterizer codegen] Rewrite gen_llvm_ir_macros.py to use mako
Don't create/use cpp files, header only now. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/SConscript')
-rw-r--r--src/gallium/drivers/swr/SConscript24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript
index eb20b00982f..6e228f43154 100644
--- a/src/gallium/drivers/swr/SConscript
+++ b/src/gallium/drivers/swr/SConscript
@@ -70,31 +70,17 @@ env.CodeGenerate(
)
env.CodeGenerate(
- target = 'rasterizer/jitter/builder_gen.h',
+ target = 'rasterizer/jitter/gen_builder.hpp',
script = swrroot + 'rasterizer/codegen/gen_llvm_ir_macros.py',
source = os.path.join(llvm_includedir, 'llvm/IR/IRBuilder.h'),
- command = python_cmd + ' $SCRIPT --input $SOURCE --output $TARGET --gen_h'
-)
-
-env.CodeGenerate(
- target = 'rasterizer/jitter/builder_gen.cpp',
- script = swrroot + 'rasterizer/codegen/gen_llvm_ir_macros.py',
- source = os.path.join(llvm_includedir, 'llvm/IR/IRBuilder.h'),
- command = python_cmd + ' $SCRIPT --input $SOURCE --output $TARGET --gen_cpp'
-)
-
-env.CodeGenerate(
- target = 'rasterizer/jitter/builder_x86.h',
- script = swrroot + 'rasterizer/codegen/gen_llvm_ir_macros.py',
- source = '',
- command = python_cmd + ' $SCRIPT --output $TARGET --gen_x86_h'
+ command = python_cmd + ' $SCRIPT --input $SOURCE --output rasterizer/jitter --gen_h'
)
env.CodeGenerate(
- target = 'rasterizer/jitter/builder_x86.cpp',
+ target = 'rasterizer/jitter/gen_builder_x86.hpp',
script = swrroot + 'rasterizer/codegen/gen_llvm_ir_macros.py',
source = '',
- command = python_cmd + ' $SCRIPT --output $TARGET --gen_x86_cpp'
+ command = python_cmd + ' $SCRIPT --output rasterizer/jitter --gen_x86_h'
)
env.CodeGenerate(
@@ -147,8 +133,6 @@ env.CodeGenerate(
# Auto-generated .cpp files (that need to generate object files)
built_sources = [
'rasterizer/codegen/gen_knobs.cpp',
- 'rasterizer/jitter/builder_gen.cpp',
- 'rasterizer/jitter/builder_x86.cpp',
'rasterizer/archrast/gen_ar_event.cpp',
'rasterizer/core/BackendPixelRate0.cpp',
]