Changeset View
Changeset View
Standalone View
Standalone View
lib/Driver/ToolChains/HIP.cpp
Context not available. | |||||
std::string ISAVerBC = | std::string ISAVerBC = | ||||
"oclc_isa_version_" + SubArchName.drop_front(3).str() + ".amdgcn.bc"; | "oclc_isa_version_" + SubArchName.drop_front(3).str() + ".amdgcn.bc"; | ||||
llvm::StringRef FlushDenormalControlBC; | |||||
yaxunl: you can use StringRef here. Please use a more meaningful name, e.g. FlushDenormalControlBC. | |||||
if (Args.hasArg(options::OPT_fcuda_flush_denormals_to_zero)) | |||||
FlushDenormalControlBC = "oclc_daz_opt_on.amdgcn.bc"; | |||||
else | |||||
FlushDenormalControlBC = "oclc_daz_opt_off.amdgcn.bc"; | |||||
BCLibs.append({"opencl.amdgcn.bc", | BCLibs.append({"opencl.amdgcn.bc", | ||||
"ockl.amdgcn.bc", "irif.amdgcn.bc", "ocml.amdgcn.bc", | "ockl.amdgcn.bc", "irif.amdgcn.bc", "ocml.amdgcn.bc", | ||||
yaxunlUnsubmitted Not Done ReplyInline Actionswe need to fix the order. should be ocml, then ockl, then irif. but should do it in another patch yaxunl: we need to fix the order. should be ocml, then ockl, then irif. but should do it in another… | |||||
"oclc_finite_only_off.amdgcn.bc", | "oclc_finite_only_off.amdgcn.bc", | ||||
"oclc_daz_opt_off.amdgcn.bc", | FlushDenormalControlBC, | ||||
"oclc_correctly_rounded_sqrt_on.amdgcn.bc", | "oclc_correctly_rounded_sqrt_on.amdgcn.bc", | ||||
"oclc_unsafe_math_off.amdgcn.bc", ISAVerBC}); | "oclc_unsafe_math_off.amdgcn.bc", ISAVerBC}); | ||||
} | } | ||||
Context not available. |
you can use StringRef here. Please use a more meaningful name, e.g. FlushDenormalControlBC.