mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
radeon/llvm/loader: convert hardcoded gpu name to option
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
482041a538
commit
6806f81fb4
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue