P4 to Git Change 1076356 by smekhano@rampitec-HSA on 2014/09/12 09:35:57

ECR #333753 - HSA HLC: remove code changing the default filetype which is set by an external tool such as llc
	Effectively llc will produce text hsail file by default as a standard llc behaviour. Use -filetype=obj to obtain brig.
	Note, test_driver.pl is already patched to preserve old behaviour.

	Testing: smoke, smoke_clang, precheckin
	Reviewed by Nikolay Haustov

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/codegen.cpp#58 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILTargetMachine.cpp#33 edit
Этот коммит содержится в:
foreman
2014-09-12 09:42:39 -04:00
родитель 6fddbe6449
Коммит fea6100aa9
-12
Просмотреть файл
@@ -24,18 +24,6 @@
using namespace amdcl;
using namespace llvm;
#ifdef WITH_TARGET_HSAIL
// Variable FileType are checked by HSAILTargetMachine, but only
// created in llc.exe. Create it here for online compilation path.
llvm::cl::opt<TargetMachine::CodeGenFileType>
FileType("filetype", cl::init(TargetMachine::CGFT_ObjectFile),
cl::values(
clEnumValN(TargetMachine::CGFT_AssemblyFile, "asm", ""),
clEnumValN(TargetMachine::CGFT_ObjectFile, "obj", ""),
clEnumValN(TargetMachine::CGFT_Null, "null", ""),
clEnumValEnd));
#endif
static std::string aclGetCodegenName(const aclTargetInfo &tgtInfo)
{
assert(tgtInfo.arch_id <= aclLast && "Unknown device id!");