message: Allow extra DIExpressions
diff: @@ -1089,7 +1089,13 @@ bool Module::translateToSPIRV(llvm::Module *module, std::stringstream &ss) {
  "spirv-allow-unknown-intrinsics", llvm::cl::init(true),
  llvm::cl::desc("Unknown LLVM intrinsics will be translated as external function "
  "calls in SPIR-V"));
  + llvm::cl::opt<bool> SPIRVAllowExtraDIExpressions(
  + "spirv-allow-extra-diexpressions", llvm::cl::init(true),
  + llvm::cl::desc("Allow DWARF operations not listed in the OpenCL.DebugInfo.100 "
  + "specification (experimental, may produce incompatible SPIR-V "
  + "module)"));
  Opts.setSPIRVAllowUnknownIntrinsicsEnabled(SPIRVAllowUnknownIntrinsics);
  + Opts.setAllowExtraDIExpressionsEnabled(SPIRVAllowExtraDIExpressions);
  Opts.setDesiredBIsRepresentation(SPIRV::BIsRepresentation::SPIRVFriendlyIR);
  Opts.setDebugInfoEIS(SPIRV::DebugInfoEIS::OpenCL_DebugInfo_100);
  bool success = llvm::writeSpirv(module, Opts, ss, err);
  