Skip to content

Commit 2e061f9

Browse files
committed
Rename "trail" to "lime".
1 parent b907c95 commit 2e061f9

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

clang/lib/Basic/Targets/WebAssembly.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ bool WebAssemblyTargetInfo::initFeatureMap(
168168
Features["call-indirect-overlong"] = true;
169169
Features["sign-ext"] = true;
170170
};
171-
auto addTrail1Features = [&]() {
171+
auto addLime1Features = [&]() {
172172
Features["multivalue"] = true;
173173
Features["mutable-globals"] = true;
174174
Features["call-indirect-overlong"] = true;
@@ -190,8 +190,8 @@ bool WebAssemblyTargetInfo::initFeatureMap(
190190
};
191191
if (CPU == "generic") {
192192
addGenericFeatures();
193-
} else if (CPU == "trail1") {
194-
addTrail1Features();
193+
} else if (CPU == "lime1") {
194+
addLime1Features();
195195
} else if (CPU == "bleeding-edge") {
196196
addBleedingEdgeFeatures();
197197
}

llvm/lib/Target/WebAssembly/WebAssembly.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def : ProcessorModel<"generic", NoSchedModel,
127127
FeatureNontrappingFPToInt, FeatureReferenceTypes,
128128
FeatureCallIndirectOverlong, FeatureSignExt]>;
129129

130-
def : ProcessorModel<"trail1", NoSchedModel,
130+
def : ProcessorModel<"lime1", NoSchedModel,
131131
[FeatureMultivalue, FeatureMutableGlobals,
132132
FeatureCallIndirectOverlong, FeatureSignExt,
133133
FeatureBulkMemoryOpt, FeatureNontrappingFPToInt,

llvm/test/CodeGen/WebAssembly/target-features-cpus.ll

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; RUN: llc < %s -mcpu=mvp | FileCheck %s --check-prefixes MVP
22
; RUN: llc < %s -mcpu=generic | FileCheck %s --check-prefixes GENERIC
3-
; RUN: llc < %s -mcpu=trail1 | FileCheck %s --check-prefixes TRAIL1
3+
; RUN: llc < %s -mcpu=lime1 | FileCheck %s --check-prefixes LIME1
44
; RUN: llc < %s | FileCheck %s --check-prefixes GENERIC
55
; RUN: llc < %s -mcpu=bleeding-edge | FileCheck %s --check-prefixes BLEEDING-EDGE
66

@@ -37,30 +37,30 @@ target triple = "wasm32-unknown-unknown"
3737
; GENERIC-NEXT: .int8 8
3838
; GENERIC-NEXT: .ascii "sign-ext"
3939

40-
; trail1: +bulk-memory-opt, +call-indirect-overlong, +extended-const, +multivalue, +mutable-globals, +nontrapping-fptoint, +sign-ext
41-
; TRAIL1-LABEL: .custom_section.target_features,"",@
42-
; TRAIL1-NEXT: .int8 6
43-
; TRAIL1-NEXT: .int8 43
44-
; TRAIL1-NEXT: .int8 15
45-
; TRAIL1-NEXT: .int8 "bulk-memory-opt"
46-
; TRAIL1-NEXT: .int8 43
47-
; TRAIL1-NEXT: .int8 22
48-
; TRAIL1-NEXT: .int8 "call-indirect-overlong"
49-
; TRAIL1-NEXT: .int8 43
50-
; TRAIL1-NEXT: .int8 14
51-
; TRAIL1-NEXT: .ascii "extended-const"
52-
; TRAIL1-NEXT: .int8 43
53-
; TRAIL1-NEXT: .int8 10
54-
; TRAIL1-NEXT: .ascii "multivalue"
55-
; TRAIL1-NEXT: .int8 43
56-
; TRAIL1-NEXT: .int8 15
57-
; TRAIL1-NEXT: .ascii "mutable-globals"
58-
; TRAIL1-NEXT: .int8 43
59-
; TRAIL1-NEXT: .int8 19
60-
; TRAIL1-NEXT: .ascii "nontrapping-fptoint"
61-
; TRAIL1-NEXT: .int8 43
62-
; TRAIL1-NEXT: .int8 8
63-
; TRAIL1-NEXT: .ascii "sign-ext"
40+
; lime1: +bulk-memory-opt, +call-indirect-overlong, +extended-const, +multivalue, +mutable-globals, +nontrapping-fptoint, +sign-ext
41+
; LIME1-LABEL: .custom_section.target_features,"",@
42+
; LIME1-NEXT: .int8 6
43+
; LIME1-NEXT: .int8 43
44+
; LIME1-NEXT: .int8 15
45+
; LIME1-NEXT: .int8 "bulk-memory-opt"
46+
; LIME1-NEXT: .int8 43
47+
; LIME1-NEXT: .int8 22
48+
; LIME1-NEXT: .int8 "call-indirect-overlong"
49+
; LIME1-NEXT: .int8 43
50+
; LIME1-NEXT: .int8 14
51+
; LIME1-NEXT: .ascii "extended-const"
52+
; LIME1-NEXT: .int8 43
53+
; LIME1-NEXT: .int8 10
54+
; LIME1-NEXT: .ascii "multivalue"
55+
; LIME1-NEXT: .int8 43
56+
; LIME1-NEXT: .int8 15
57+
; LIME1-NEXT: .ascii "mutable-globals"
58+
; LIME1-NEXT: .int8 43
59+
; LIME1-NEXT: .int8 19
60+
; LIME1-NEXT: .ascii "nontrapping-fptoint"
61+
; LIME1-NEXT: .int8 43
62+
; LIME1-NEXT: .int8 8
63+
; LIME1-NEXT: .ascii "sign-ext"
6464

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

0 commit comments

Comments
 (0)