cl_options.cpp (ldc-1.32.1) | : | cl_options.cpp (ldc-1.32.2) | ||
---|---|---|---|---|
skipping to change at line 565 | skipping to change at line 565 | |||
cl::desc("Do not discard value names in LLVM IR")); | cl::desc("Do not discard value names in LLVM IR")); | |||
cl::opt<bool> fNullPointerIsValid( | cl::opt<bool> fNullPointerIsValid( | |||
"fno-delete-null-pointer-checks", cl::ZeroOrMore, | "fno-delete-null-pointer-checks", cl::ZeroOrMore, | |||
cl::desc( | cl::desc( | |||
"Treat null pointer dereference as defined behavior when optimizing " | "Treat null pointer dereference as defined behavior when optimizing " | |||
"(instead of _un_defined behavior). This prevents the optimizer from " | "(instead of _un_defined behavior). This prevents the optimizer from " | |||
"assuming that any dereferenced pointer must not have been null and " | "assuming that any dereferenced pointer must not have been null and " | |||
"optimize away the branches accordingly.")); | "optimize away the branches accordingly.")); | |||
cl::opt<bool> | ||||
fSplitStack("fsplit-stack", cl::ZeroOrMore, | ||||
cl::desc("Use segmented stack (see Clang documentation)")); | ||||
cl::opt<bool, true> | cl::opt<bool, true> | |||
allinst("allinst", cl::ZeroOrMore, cl::location(global.params.allInst), | allinst("allinst", cl::ZeroOrMore, cl::location(global.params.allInst), | |||
cl::desc("Generate code for all template instantiations")); | cl::desc("Generate code for all template instantiations")); | |||
cl::opt<unsigned, true> nestedTemplateDepth( | cl::opt<unsigned, true> nestedTemplateDepth( | |||
"template-depth", cl::ZeroOrMore, cl::location(global.recursionLimit), | "template-depth", cl::ZeroOrMore, cl::location(global.recursionLimit), | |||
cl::init(500), | cl::init(500), | |||
cl::desc("Set maximum number of nested template instantiations")); | cl::desc("Set maximum number of nested template instantiations")); | |||
// legacy options superseded by `-preview=dip<N>` | // legacy options superseded by `-preview=dip<N>` | |||
skipping to change at line 667 | skipping to change at line 671 | |||
clEnumValN(LTO_Thin, "thin", | clEnumValN(LTO_Thin, "thin", | |||
"Parallel importing and codegen (faster than 'full')"))); | "Parallel importing and codegen (faster than 'full')"))); | |||
cl::opt<std::string> | cl::opt<std::string> | |||
saveOptimizationRecord("fsave-optimization-record", | saveOptimizationRecord("fsave-optimization-record", | |||
cl::value_desc("filename"), | cl::value_desc("filename"), | |||
cl::desc("Generate a YAML optimization record file " | cl::desc("Generate a YAML optimization record file " | |||
"of optimizations performed by LLVM"), | "of optimizations performed by LLVM"), | |||
cl::ValueOptional); | cl::ValueOptional); | |||
#if LDC_LLVM_VER >= 1300 | ||||
// LLVM < 13 has "--warn-stack-size", but let's not do the effort of forwarding | ||||
// the string to that option, and instead let the user do it himself. | ||||
cl::opt<unsigned> | ||||
fWarnStackSize("fwarn-stack-size", cl::ZeroOrMore, cl::init(UINT_MAX), | ||||
cl::desc("Warn for stack size bigger than the given number"), | ||||
cl::value_desc("threshold")); | ||||
#endif | ||||
#if LDC_LLVM_SUPPORTED_TARGET_SPIRV || LDC_LLVM_SUPPORTED_TARGET_NVPTX | #if LDC_LLVM_SUPPORTED_TARGET_SPIRV || LDC_LLVM_SUPPORTED_TARGET_NVPTX | |||
cl::list<std::string> | cl::list<std::string> | |||
dcomputeTargets("mdcompute-targets", cl::CommaSeparated, | dcomputeTargets("mdcompute-targets", cl::CommaSeparated, | |||
cl::desc("Generates code for the specified DCompute target" | cl::desc("Generates code for the specified DCompute target" | |||
" list. Use 'ocl-xy0' for OpenCL x.y, and " | " list. Use 'ocl-xy0' for OpenCL x.y, and " | |||
"'cuda-xy0' for CUDA CC x.y"), | "'cuda-xy0' for CUDA CC x.y"), | |||
cl::value_desc("targets")); | cl::value_desc("targets")); | |||
cl::opt<std::string> | cl::opt<std::string> | |||
dcomputeFilePrefix("mdcompute-file-prefix", | dcomputeFilePrefix("mdcompute-file-prefix", | |||
cl::desc("Prefix to prepend to the generated kernel files ."), | cl::desc("Prefix to prepend to the generated kernel files ."), | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 13 lines changed or added |