Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
a4d40fd0
"docs/source/git@developer.sourcefind.cn:xdb4_94051/vllm.git" did not exist on "cd3aa153a4e4974802385f209ad343149af02c07"
Commit
a4d40fd0
authored
May 18, 2022
by
Paul
Browse files
Use func dialect
parent
34a7c072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/mlir.cpp
src/targets/gpu/mlir.cpp
+2
-2
No files found.
src/targets/gpu/mlir.cpp
View file @
a4d40fd0
...
@@ -402,9 +402,9 @@ struct mlir_program
...
@@ -402,9 +402,9 @@ struct mlir_program
MlirBlock
result
=
fbody
.
get
();
MlirBlock
result
=
fbody
.
get
();
mlirRegionAppendOwnedBlock
(
region
.
get
(),
fbody
.
release
());
mlirRegionAppendOwnedBlock
(
region
.
get
(),
fbody
.
release
());
auto
ops
=
create_operation_state
(
"
builtin
.func"
);
auto
ops
=
create_operation_state
(
"
func
.func"
);
ops
.
add_attributes
(
ops
.
add_attributes
(
{{
"type"
,
make_function_type
(
inputs
,
outputs
)},
{
"sym_name"
,
std
::
string
(
"main"
)}});
{{
"
function_
type"
,
make_function_type
(
inputs
,
outputs
)},
{
"sym_name"
,
std
::
string
(
"main"
)}
,
{
"kernel"
,
std
::
string
(
"mixr"
)}
});
ops
.
add_region
(
std
::
move
(
region
));
ops
.
add_region
(
std
::
move
(
region
));
insert
(
body
,
std
::
move
(
ops
));
insert
(
body
,
std
::
move
(
ops
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment