Skip to content

Commit

Permalink
Rename "trail" to "lime".
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Oct 22, 2024
1 parent f75f26d commit 54eb067
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions clang/lib/Basic/Targets/WebAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ bool WebAssemblyTargetInfo::initFeatureMap(
Features["call-indirect-overlong"] = true;
Features["sign-ext"] = true;
};
auto addTrail1Features = [&]() {
auto addLime1Features = [&]() {
Features["multivalue"] = true;
Features["mutable-globals"] = true;
Features["call-indirect-overlong"] = true;
Expand All @@ -186,8 +186,8 @@ bool WebAssemblyTargetInfo::initFeatureMap(
};
if (CPU == "generic") {
addGenericFeatures();
} else if (CPU == "trail1") {
addTrail1Features();
} else if (CPU == "lime1") {
addLime1Features();
} else if (CPU == "bleeding-edge") {
addBleedingEdgeFeatures();
}
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/WebAssembly/WebAssembly.td
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def : ProcessorModel<"generic", NoSchedModel,
FeatureReferenceTypes, FeatureCallIndirectOverlong,
FeatureSignExt]>;

def : ProcessorModel<"trail1", NoSchedModel,
def : ProcessorModel<"lime1", NoSchedModel,
[FeatureMultivalue, FeatureMutableGlobals,
FeatureCallIndirectOverlong, FeatureSignExt,
FeatureBulkMemoryOpt, FeatureNontrappingFPToInt,
Expand Down
50 changes: 25 additions & 25 deletions llvm/test/CodeGen/WebAssembly/target-features-cpus.ll
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; RUN: llc < %s -mcpu=mvp | FileCheck %s --check-prefixes MVP
; RUN: llc < %s -mcpu=generic | FileCheck %s --check-prefixes GENERIC
; RUN: llc < %s -mcpu=trail1 | FileCheck %s --check-prefixes TRAIL1
; RUN: llc < %s -mcpu=lime1 | FileCheck %s --check-prefixes LIME1
; RUN: llc < %s | FileCheck %s --check-prefixes GENERIC
; RUN: llc < %s -mcpu=bleeding-edge | FileCheck %s --check-prefixes BLEEDING-EDGE

Expand Down Expand Up @@ -31,30 +31,30 @@ target triple = "wasm32-unknown-unknown"
; GENERIC-NEXT: .int8 8
; GENERIC-NEXT: .ascii "sign-ext"

; trail1: +bulk-memory-opt, +call-indirect-overlong, +extended-const, +multivalue, +mutable-globals, +nontrapping-fptoint, +sign-ext
; TRAIL1-LABEL: .custom_section.target_features,"",@
; TRAIL1-NEXT: .int8 6
; TRAIL1-NEXT: .int8 43
; TRAIL1-NEXT: .int8 15
; TRAIL1-NEXT: .int8 "bulk-memory-opt"
; TRAIL1-NEXT: .int8 43
; TRAIL1-NEXT: .int8 22
; TRAIL1-NEXT: .int8 "call-indirect-overlong"
; TRAIL1-NEXT: .int8 43
; TRAIL1-NEXT: .int8 14
; TRAIL1-NEXT: .ascii "extended-const"
; TRAIL1-NEXT: .int8 43
; TRAIL1-NEXT: .int8 10
; TRAIL1-NEXT: .ascii "multivalue"
; TRAIL1-NEXT: .int8 43
; TRAIL1-NEXT: .int8 15
; TRAIL1-NEXT: .ascii "mutable-globals"
; TRAIL1-NEXT: .int8 43
; TRAIL1-NEXT: .int8 19
; TRAIL1-NEXT: .ascii "nontrapping-fptoint"
; TRAIL1-NEXT: .int8 43
; TRAIL1-NEXT: .int8 8
; TRAIL1-NEXT: .ascii "sign-ext"
; lime1: +bulk-memory-opt, +call-indirect-overlong, +extended-const, +multivalue, +mutable-globals, +nontrapping-fptoint, +sign-ext
; LIME1-LABEL: .custom_section.target_features,"",@
; LIME1-NEXT: .int8 6
; LIME1-NEXT: .int8 43
; LIME1-NEXT: .int8 15
; LIME1-NEXT: .int8 "bulk-memory-opt"
; LIME1-NEXT: .int8 43
; LIME1-NEXT: .int8 22
; LIME1-NEXT: .int8 "call-indirect-overlong"
; LIME1-NEXT: .int8 43
; LIME1-NEXT: .int8 14
; LIME1-NEXT: .ascii "extended-const"
; LIME1-NEXT: .int8 43
; LIME1-NEXT: .int8 10
; LIME1-NEXT: .ascii "multivalue"
; LIME1-NEXT: .int8 43
; LIME1-NEXT: .int8 15
; LIME1-NEXT: .ascii "mutable-globals"
; LIME1-NEXT: .int8 43
; LIME1-NEXT: .int8 19
; LIME1-NEXT: .ascii "nontrapping-fptoint"
; LIME1-NEXT: .int8 43
; LIME1-NEXT: .int8 8
; LIME1-NEXT: .ascii "sign-ext"

; bleeding-edge: +atomics, +bulk-memory, +bulk-memory-opt,
; +call-indirect-overlong, +exception-handling,
Expand Down

0 comments on commit 54eb067

Please sign in to comment.