Lines Matching refs:FEATURE
1 //===--- RISCV.cpp - Implement RISCV target feature support ---------------===//
232 #define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \
233 {#ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE},
252 /// Return true if has this feature, need to sync with handleTargetFeatures.
253 bool RISCVTargetInfo::hasFeature(StringRef Feature) const {
255 return llvm::StringSwitch<bool>(Feature)
287 for (const auto &Feature : Features) {
288 if (Feature == "+m")
290 else if (Feature == "+a")
292 else if (Feature == "+f")
294 else if (Feature == "+d")
296 else if (Feature == "+c")
298 else if (Feature == "+experimental-b")
300 else if (Feature == "+experimental-v")
302 else if (Feature == "+experimental-zba")
304 else if (Feature == "+experimental-zbb")
306 else if (Feature == "+experimental-zbc")
308 else if (Feature == "+experimental-zbe")
310 else if (Feature == "+experimental-zbf")
312 else if (Feature == "+experimental-zbm")
314 else if (Feature == "+experimental-zbp")
316 else if (Feature == "+experimental-zbproposedc")
318 else if (Feature == "+experimental-zbr")
320 else if (Feature == "+experimental-zbs")
322 else if (Feature == "+experimental-zbt")
324 else if (Feature == "+experimental-zfh")
326 else if (Feature == "+experimental-zvamo")
328 else if (Feature == "+experimental-zvlsseg")