Lines Matching defs:feature
523 // gold provide the feature, and used by many programs.
581 // contain the mutable-globals feature.
604 for (auto &feature : file->getWasmObj()->getTargetFeatures()) {
605 switch (feature.Prefix) {
607 used.insert({feature.Name, std::string(fileName)});
610 disallowed.insert({feature.Name, std::string(fileName)});
613 error("Unrecognized feature policy prefix " +
614 std::to_string(feature.Prefix));
638 for (auto feature : {"atomics", "bulk-memory"})
639 if (!allowed.count(feature))
640 error(StringRef("'") + feature +
641 "' feature must be used in order to use shared memory");
645 for (auto feature : {"atomics", "bulk-memory"})
646 if (!allowed.count(feature))
647 error(StringRef("'") + feature +
648 "' feature must be used in order to use thread-local storage");
653 for (const auto &feature : used.keys()) {
654 if (!allowed.count(std::string(feature)))
655 error(Twine("Target feature '") + feature + "' used by " +
656 used[feature] + " is not allowed.");
664 for (const auto &feature : file->getWasmObj()->getTargetFeatures()) {
665 if (feature.Prefix == WASM_FEATURE_PREFIX_DISALLOWED)
667 objectFeatures.insert(feature.Name);
668 if (disallowed.count(feature.Name))
669 error(Twine("Target feature '") + feature.Name + "' used in " +
670 fileName + " is disallowed by " + disallowed[feature.Name] +
689 for (auto &feature : allowed)
690 log("Allowed feature: " + feature);
701 error(Twine("mutable global imported but 'mutable-globals' feature "
709 error(Twine("mutable global exported but 'mutable-globals' feature "
810 // files were built with the `mutable-globals` feature.