Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
scheduler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
scheduler
Commits
73b26e73
Commit
73b26e73
authored
Apr 17, 2023
by
Zircon Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a working example for opt.
parent
8adfd27b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
+29
-1
CMakeLists.txt
+1
-1
tools/iprc-opt/CMakeLists.txt
+15
-0
tools/iprc-opt/iprc-opt-main.cc
+13
-0
No files found.
CMakeLists.txt
View file @
73b26e73
...
...
@@ -26,5 +26,5 @@ add_subdirectory(third_party/iree)
add_subdirectory
(
tools
)
# Set include directories
include_directories
(
${
IREE_SOURCE_DIR
}
/
iree/
compiler/src
)
include_directories
(
${
IREE_SOURCE_DIR
}
/compiler/src
)
tools/iprc-opt/CMakeLists.txt
0 → 100644
View file @
73b26e73
add_executable
(
iprc-opt
iprc-opt-main.cc
)
target_link_libraries
(
iprc-opt
PRIVATE
iree::compiler::API2::Headers
iree::compiler::API2::Impl
)
target_include_directories
(
iprc-opt
PRIVATE
${
IREE_SOURCE_DIR
}
/compiler/src
)
tools/iprc-opt/iprc-opt-main.cc
0 → 100644
View file @
73b26e73
// Copyright 2020 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// Main entry function for iree-opt and derived binaries.
//
// Based on mlir-opt but registers the passes and dialects we care about.
#include "iree/compiler/API2/ToolEntryPoints.h"
int
main
(
int
argc
,
char
**
argv
)
{
return
ireeOptRunMain
(
argc
,
argv
);
}
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