diff options
author | Vadim Girlin <[email protected]> | 2012-05-25 17:22:38 +0400 |
---|---|---|
committer | Vadim Girlin <[email protected]> | 2012-05-25 17:22:38 +0400 |
commit | 6806f81fb40ae3dc2da9bd8dbd602fb9c1a4dfc1 (patch) | |
tree | 4bc64eea3203d35292b2c57f5bb363aef521e34c /src | |
parent | 482041a53862f45afd88536b5a615501cbb6ce25 (diff) |
radeon/llvm/loader: convert hardcoded gpu name to option
Signed-off-by: Vadim Girlin <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeon/loader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/loader.cpp b/src/gallium/drivers/radeon/loader.cpp index 79348d59430..3ea8cd8900e 100644 --- a/src/gallium/drivers/radeon/loader.cpp +++ b/src/gallium/drivers/radeon/loader.cpp @@ -15,7 +15,8 @@ using namespace llvm; static cl::opt<std::string> InputFilename(cl::Positional, cl::desc("<input bitcode>"), cl::init("-")); - +static cl::opt<std::string> +TargetGPUName("gpu", cl::desc("target gpu name"), cl::value_desc("gpu_name")); int main(int argc, char ** argv) { @@ -30,5 +31,5 @@ int main(int argc, char ** argv) Module * mod = M.get(); - radeon_llvm_compile(wrap(mod), &bytes, &byte_count, "redwood", 1); + radeon_llvm_compile(wrap(mod), &bytes, &byte_count, TargetGPUName.c_str(), 1); } |