Lines Matching full:feature
1 //===--- WebAssembly.cpp - Implement WebAssembly target feature support ---===//
26 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \
27 {#ID, TYPE, ATTRS, FEATURE, HeaderDesc::NO_HEADER, ALL_LANGUAGES},
46 bool WebAssemblyTargetInfo::hasFeature(StringRef Feature) const {
47 return llvm::StringSwitch<bool>(Feature)
182 for (const auto &Feature : Features) {
183 if (Feature == "+atomics") {
187 if (Feature == "-atomics") {
191 if (Feature == "+bulk-memory") {
195 if (Feature == "-bulk-memory") {
199 if (Feature == "+exception-handling") {
203 if (Feature == "-exception-handling") {
207 if (Feature == "+extended-const") {
211 if (Feature == "-extended-const") {
215 if (Feature == "+half-precision") {
220 if (Feature == "-half-precision") {
224 if (Feature == "+multimemory") {
228 if (Feature == "-multimemory") {
232 if (Feature == "+multivalue") {
236 if (Feature == "-multivalue") {
240 if (Feature == "+mutable-globals") {
244 if (Feature == "-mutable-globals") {
248 if (Feature == "+nontrapping-fptoint") {
252 if (Feature == "-nontrapping-fptoint") {
256 if (Feature == "+reference-types") {
260 if (Feature == "-reference-types") {
264 if (Feature == "+relaxed-simd") {
268 if (Feature == "-relaxed-simd") {
272 if (Feature == "+sign-ext") {
276 if (Feature == "-sign-ext") {
280 if (Feature == "+simd128") {
284 if (Feature == "-simd128") {
288 if (Feature == "+tail-call") {
292 if (Feature == "-tail-call") {
298 << Feature << "-target-feature";