-
Notifications
You must be signed in to change notification settings - Fork 1
[DO NOT MERGE] pr for sync #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
1. Port CustomOperator.def. 2. Add rounding mode. 3. Port tail policy. 4. Add intrinsic function prefix "__riscv_". 5. Fix CI.
1. Add rif-local dummy segment load store and other head file, todo: C++ decode part. 2. Update CustomOperator.def op_type. Append output and input nfields to avoid C++ part redefinition. 3. Add dummy rif codegen file
1. Fix CustomOperatore.def input_nfield part. 2. Add input tuple declaration.
1. Fix CustomOperatore.def input_nfield part. 2. Add input tuple declaration.
Add SegStoreOperation SegLoadOperation Miscellaneous in OpAttr
lazyparser
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice (re)start.
现在有了一个同步代码的基础,要做以下的工作:
- 维持这个pr2不动
- 重新建立一个分支,拆分下,提交一个pr,不要包含 segment load store,我看看是否容易review一点
- 删除掉空行
- 删除掉脚本生成的文件
- 解释 rif-local 为什么需要存在
- 简化 build.yml
- 可以单独提交1个pr删除掉已经过时的测试用例(并更新构建文件)
- clang-format.yml 的修改可以单独一个pr提交
| set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
| set(CMAKE_CXX_STANDARD 17) | ||
|
|
||
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -v --save-temps") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
调试用途的不用加入到代码中。在调用cmake的时候命令行添加即可。不要添加这个修改。
| FetchContent_Declare( | ||
| googletest | ||
| URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip | ||
| URL https://github.com/google/googletest/archive/refs/tags/v1.16.0.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果原来的zip能work就不要修改。
| V:= | ||
| endif | ||
|
|
||
| #qj add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
作者信息体现在 git commit message 中,不要写在注释里。这是早年没有VCS版本管理工具的时候的做法。
| || (echo $(2) && exit 1) | ||
| endef | ||
|
|
||
| #define cmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果不需要了,删除掉,而不是注释掉;以后如果要恢复,用git revert。
| name: built | ||
| path: build | ||
|
|
||
| test: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
分成几次提交,先确保 build 阶段能正确work。test阶段先删除。
| --has-policy | ||
| ) | ||
| #qj add | ||
| set(GCC_TOOLCHAIN_PREFIX "/home/qjivy/work/toolchain/install-rif/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
硬编码的路径不要带开发者个人信息。
另外这个 set 默认应该是空的比较好,没有则报错。
| set(GCC_TOOLCHAIN_PREFIX "/sifive/tools/riscv-tools/riscv64-unknown-linux-gnu-toolsuite-13.0.0-2021.11.5-x86_64-linux-redhat8") | ||
| set(COMPILER_TOOLCHAIN_PREFIX "/sifive/tools/riscv-tools/riscv64-unknown-linux-gnu-toolsuite-13.0.0-2021.11.5-x86_64-linux-redhat8") | ||
| set(GCC_TOOLCHAIN_PREFIX "/home/xyenchi/dragon/riscv-gnu-toolchain/rif/bin/") | ||
| set(COMPILER_TOOLCHAIN_PREFIX "/home/xyenchi/dragon/riscv-gnu-toolchain/rif/bin/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
硬编码的路径不要带开发者个人信息。
原有的代码看起来是硬编码了 CI workers 里的信息,开源之后应该更加一般化,要求用户在调用时候命令行指定。
| set(FUZZ 1) | ||
| set(NODE 20) | ||
| set(LENGTH 500) | ||
| set(LENGTH 50) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么要修改 LENGTH?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不修改会生成测试数据太长。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件我记得是 rif-test 自动生成的。检查下如果是错误的添加的,删除掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么删除了这个文件?
No description provided.