Update load_and_broadcast built-in
Change function suffix to "_i32", etc, from "_32" Improve load_and_broadcast macro in util.m4 to grab vector width from WIDTH variable rather than taking it as a parameter.
This commit is contained in:
20
opt.cpp
20
opt.cpp
@@ -2281,21 +2281,21 @@ GSToLoadStorePass::runOnBasicBlock(llvm::BasicBlock &bb) {
|
||||
DEBUG_START_PASS("GSToLoadStorePass");
|
||||
|
||||
GatherImpInfo gInfo[] = {
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_8", "__load_and_broadcast_8",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_8", "__load_and_broadcast_i8",
|
||||
"__masked_load_8", 1),
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_16", "__load_and_broadcast_16",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_16", "__load_and_broadcast_i16",
|
||||
"__masked_load_16", 2),
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_32", "__load_and_broadcast_32",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_32", "__load_and_broadcast_i32",
|
||||
"__masked_load_32", 4),
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_64", "__load_and_broadcast_64",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets32_64", "__load_and_broadcast_i64",
|
||||
"__masked_load_64", 8),
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_8", "__load_and_broadcast_8",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_8", "__load_and_broadcast_i8",
|
||||
"__masked_load_8", 1),
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_16", "__load_and_broadcast_16",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_16", "__load_and_broadcast_i16",
|
||||
"__masked_load_16", 2),
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_32", "__load_and_broadcast_32",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_32", "__load_and_broadcast_i32",
|
||||
"__masked_load_32", 4),
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_64", "__load_and_broadcast_64",
|
||||
GatherImpInfo("__pseudo_gather_base_offsets64_64", "__load_and_broadcast_i64",
|
||||
"__masked_load_64", 8)
|
||||
};
|
||||
ScatterImpInfo sInfo[] = {
|
||||
@@ -3815,14 +3815,14 @@ MakeInternalFuncsStaticPass::runOnModule(llvm::Module &module) {
|
||||
"__gather_elt32_i32", "__gather_elt32_i64",
|
||||
"__gather_elt64_i8", "__gather_elt64_i16",
|
||||
"__gather_elt64_i32", "__gather_elt64_i64",
|
||||
"__load_and_broadcast_8", "__load_and_broadcast_16",
|
||||
"__load_and_broadcast_32", "__load_and_broadcast_64",
|
||||
"__masked_load_8", "__masked_load_16",
|
||||
"__masked_load_32", "__masked_load_64",
|
||||
"__masked_store_8", "__masked_store_16",
|
||||
"__masked_store_32", "__masked_store_64",
|
||||
"__masked_store_blend_8", "__masked_store_blend_16",
|
||||
"__masked_store_blend_32", "__masked_store_blend_64",
|
||||
"__load_and_broadcast_i8", "__load_and_broadcast_i16",
|
||||
"__load_and_broadcast_i32", "__load_and_broadcast_i64",
|
||||
"__scatter_base_offsets32_i8", "__scatter_base_offsets32_i16",
|
||||
"__scatter_base_offsets32_i32", "__scatter_base_offsets32_i64",
|
||||
"__scatter_base_offsets64_i8", "__scatter_base_offsets64_i16",
|
||||
|
||||
Reference in New Issue
Block a user