Home
last modified time | relevance | path

Searched refs:opt (Results 1 - 25 of 25) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
H A Dcl_parser.h63 void AddEnabledOption(OptionInterface *opt) in AddEnabledOption()
65 if (enabledOptionsSet.find(opt) == enabledOptionsSet.end()) { in AddEnabledOption()
66 enabledOptionsSet.insert(opt); in AddEnabledOption()
67 enabledOptions.push_back(opt); in AddEnabledOption()
76 void Remove(OptionInterface *opt) in Remove()
78 enabledOptionsSet.erase(opt); in Remove()
79 auto it = std::find(enabledOptions.begin(), enabledOptions.end(), opt); in Remove()
105 void Register(const std::vector<std::string> &optNames, OptionInterface &opt, OptionCategory &optCategory);
131 OptionCategory &optCategory, OptionInterface *opt);
H A Dcl_option.h88 * Example: Base option: --opt; Additional option: --no-opt.
89 * --no-opt will disable this option in this example.
403 bool operator==(Option<T> &opt, const T &arg) in operator ==() argument
405 return (opt.GetValue() == arg); in operator ==()
409 bool operator==(const T &arg, Option<T> &opt) in operator ==() argument
411 return opt == arg; in operator ==()
417 bool operator==(Option<T> &opt, const char *arg) in operator ==() argument
419 return (opt.GetValue() == arg); in operator ==()
423 bool operator==(const char *arg, Option<T> &opt) in operator ==() argument
437 CopyIfEnabled(T &dst, const T &src, OptionInterface &opt) CopyIfEnabled() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/
H A Dcl_parser.cpp78 OptionCategory &optCategory, OptionInterface *opt) in ParseOption()
80 RetCode err = opt->Parse(argsIndex, args, keyArg); in ParseOption()
86 for (auto &category : opt->optCategories) { in ParseOption()
87 category->AddEnabledOption(opt); in ParseOption()
197 void CommandLine::Register(const std::vector<std::string> &optNames, OptionInterface &opt, OptionCategory &optCategory) in Register() argument
205 optCategory.options.emplace(optName, &opt); in Register()
207 if (opt.IsJoinedValPermitted()) { in Register()
208 optCategory.joinedOptions.emplace(optName, &opt); in Register()
212 auto &disabledWith = opt.GetDisabledName(); in Register()
217 optCategory.options.emplace(disabledName, &opt); in Register()
77 ParseOption(size_t &argsIndex, const std::deque<std::string_view> &args, KeyArg &keyArg, OptionCategory &optCategory, OptionInterface *opt) ParseOption() argument
[all...]
H A Dcl_option_parser.cpp36 bool IsPrefixDetected(std::string_view opt) in IsPrefixDetected() argument
38 if (opt.substr(0, 2) == "--") { // whether opt start with 2 char "--" in IsPrefixDetected()
43 return (opt[0] == '-'); in IsPrefixDetected()
49 const OptionInterface &opt, KeyArg &keyArg) in ExtractValue()
56 bool canValBeSet = (keyArg.isEqualOpt || opt.IsJoinedValPermitted()); in ExtractValue()
60 if (opt.ExpectedVal() == ValueExpectedType::kValueDisallowed) { in ExtractValue()
66 if (opt.ExpectedVal() == ValueExpectedType::kValueDisallowed || in ExtractValue()
67 opt.ExpectedVal() == ValueExpectedType::kValueOptional) { in ExtractValue()
77 (opt in ExtractValue()
48 ExtractValue(size_t argsIndex, const std::deque<std::string_view> &args, const OptionInterface &opt, KeyArg &keyArg) ExtractValue() argument
[all...]
/arkcompiler/runtime_core/static_core/scripts/
H A Dcompiler_bisect.py65 'licm': 'licm-opt',
66 'licm-conditions': 'licm-cond-opt',
71 'lse': 'lse-opt',
72 'cse': 'cse-opt',
73 'vn': 'vn-opt',
81 'interop-intrinsic-optimization': 'interop-intrinsic-opt',
85 'redundant-loop-elimination': 'rle-opt',
118 options += [f'--compiler-{opt}={str(opt in passes).lower()}' for opt i
[all...]
H A Dinstall-third-party64 for opt in "$@"; do
65 case $opt in
71 ARK_THIRD_PARTY_MANIFEST=${opt//[-a-zA-Z0-9]*=/}
77 NUM_CLONE_ATTEMPTS=${opt//[-a-zA-Z0-9]*=/}
83 REPOS+=("${opt#*=}")
86 echo "Error: Unsupported flag $opt" >&2
/arkcompiler/runtime_core/scripts/
H A Dinstall-third-party46 for opt in "$@"
48 case $opt in
54 ARK_THIRD_PARTY_MANIFEST=${opt//[-a-zA-Z0-9]*=/}
60 echo "Error: Unsupported flag $opt" >&2
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Doptions_test_base.h58 void AddTestingOption(const std::string &opt, const std::string &value) in AddTestingOption() argument
60 correctOptionsList_.push_back("--" + opt + "=" + value); in AddTestingOption()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
H A Ddev_log.py46 opt = request.config.getoption("dev_log", request.config.getini("dev_log"), skip=True)
47 if opt:
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/prof_dump/
H A Dmain.cpp75 int opt; in ParseCommand() local
76 while ((opt = getopt_long_only(argc, const_cast<char **>(argv), optstr, longOptions, nullptr)) != -1) { in ParseCommand()
77 switch (opt) { in ParseCommand()
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ipc/
H A Dipc_unix_socket.cpp36 int opt = 1; in CreateUnixServerSocket() local
37 if (PANDA_FAILURE_RETRY(::setsockopt(sock.Get(), SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt))) == -1) { in CreateUnixServerSocket()
/arkcompiler/runtime_core/static_core/scripts/intrusive-testing/
H A Dlocal_intrusive_testing.sh77 while getopts "h?cr" opt; do
78 case "$opt" in
/arkcompiler/ets_runtime/ecmascript/intl/
H A Dglobal_intl_helper.cpp156 for (auto &opt : optionMaps[matterType]) { in OptionsToMap()
157 OperationResult operationResult = JSObject::GetProperty(thread, optionsObject, opt.second); in OptionsToMap()
161 auto inOpt = inputOptions.find(opt.first); in OptionsToMap()
163 inputOptions[opt.first] = valueStr; in OptionsToMap()
165 inputOptions.insert(make_pair(opt.first, valueStr)); in OptionsToMap()
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dreport.py296 def add(self, opt, summary, diff):
297 self.optimizations[opt] = {
395 passes_stats = {opt: {lb: passes[lb][opt]
396 for lb in libs if opt in passes[lb]}
397 for opt in all_optimisations}
441 for opt in opts:
442 opt1 = passes1[opt]
443 opt2 = passes2[opt]
465 opt,
[all...]
H A Dcli.py254 re_custom = re.compile(r'^--(?P<tool>\w+)-custom-option=(?P<opt>.+)$')
255 for opt in custom:
256 m = re.search(re_custom, opt)
259 custom_opt = m.group('opt')
265 die(not m, f'Unknown option: {opt}')
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
H A Dgc_intrusion_check.cpp55 static llvm::cl::opt<bool> g_checkAnyEscaped("gcic-any-escaped", llvm::cl::Hidden, llvm::cl::init(true));
59 static llvm::cl::opt<bool> g_checkDerived("gcic-no-derived", llvm::cl::Hidden, llvm::cl::init(true));
63 static llvm::cl::opt<bool> g_checkUnreachableRelocates("gcic-no-unreachable-relocate", llvm::cl::Hidden,
68 static llvm::cl::opt<bool> g_checkNonMovableRelocates("gcic-movable-relocates-only", llvm::cl::Hidden,
H A Dloop_peeling.cpp32 static llvm::cl::opt<bool> g_deoptimizeOnly("ark-loop-peeling-deoptimize-only", llvm::cl::Hidden, llvm::cl::init(true));
H A Dinsert_safepoints.cpp39 static llvm::cl::opt<uint32_t> g_safepointOnEntryLimit("isp-on-entry-limit", llvm::cl::Hidden, llvm::cl::init(0));
H A Dgep_propagation.cpp49 static llvm::cl::opt<bool> g_optimizeNoop("gprop-optimize", llvm::cl::Hidden, llvm::cl::init(true));
H A Dgc_intrusion.cpp62 static llvm::cl::opt<bool> g_moveCmps("gc-intrusion-move-cmps", llvm::cl::Hidden, llvm::cl::init(true),
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dobject_type_check_elimination.cpp45 auto opt = static_cast<ObjectTypeCheckElimination *>(visitor); in VisitCheckCast() local
46 opt->SetApplied(); in VisitCheckCast()
48 opt->PushNewCheckMustThrow(inst); in VisitCheckCast()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/test/
H A Dcl_ut_test.cpp40 bool operator==(const UTCLType &opt, const std::string &str) in operator ==() argument
42 bool ret = (opt.data == str) ? true : false; in operator ==()
45 bool operator==(const std::string &str, const UTCLType &opt) in operator ==() argument
47 bool ret = (opt.data == str) ? true : false; in operator ==()
499 /* ########## Check Option disabling with additional no-opt name #########
600 /* ################# Check Options like --opt=value ######################
906 UTCLType opt = testopts::uttype; in TEST() local
909 bool isSet = (tst == opt); in TEST()
912 ASSERT_EQ(opt, "--UTCLTypeOption"); in TEST()
/arkcompiler/ets_frontend/es2panda/test/
H A Drunner.py263 opt = re.findall(r"\w+", separated[0])[0].lower()
266 if opt == "filename":
267 if opt in options:
268 test_options[opt].append(value)
270 test_options[opt] = [value]
272 elif opt == "lib" or opt == "module":
273 test_options[opt] = [each.strip()
276 test_options[opt] = value.lower() == "true"
278 test_options[opt]
[all...]
/arkcompiler/ets_runtime/test/regresstest/
H A Drun_regress_test.py542 gen_ap_cmd.append("--compiler-opt-inlining=true")
696 "--compiler-opt-loop-peeling=true",
698 "--compiler-opt-track-field=true",
699 "--compiler-opt-inlining=true",
701 "--compiler-opt-level=2",
758 def match(opt: RegressOption) -> bool:
759 return test in test_groups.get(opt, [])
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Dreg_alloc_lsra.cpp1857 CallerSaveOpt opt(liveIntervalsArray, bfs); in FinalizeRegisters()
1858 opt.Run(); in FinalizeRegisters()

Completed in 17 milliseconds