Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
6ef7477
Correct confusing usage of intirnsic check (#707)
no1wudi Aug 27, 2021
5d2882f
Make aot intrinsic flags readable (#711)
no1wudi Sep 1, 2021
1687b7b
Add missing symbols from libgcc for thumb platform (#712)
no1wudi Sep 1, 2021
ee24d78
Fix Debug build error with clang-11 on linux (#714)
yamt Sep 1, 2021
3f316a9
Fix windows compile error and warning (#715)
wenyongh Sep 1, 2021
bb0e450
Move type definition of IntCond and FloatCond to aot.h (#713)
no1wudi Sep 2, 2021
cef7d35
Implement float and integer conversion intrinsics (#718)
no1wudi Sep 2, 2021
3953f81
Use builtin intrinsic for float/integer conversion (#719)
no1wudi Sep 2, 2021
4e4d48e
Fix several coding style and return value unchecked issues (#722)
wenyongh Sep 4, 2021
79f163d
Appease some UBSan complaints (#720)
yamt Sep 4, 2021
336abc2
Fix a build on alpine, whose libc is musl (#726)
yamt Sep 7, 2021
7e60b86
Add ia32 support and fix compiling issue for RT-Thread (#730)
BernardXiong Sep 7, 2021
4b0d608
Enable lazy Orc JIT feature (#732)
wenyongh Sep 7, 2021
00663f0
Import test suites to test spec cases (#736)
wenyongh Sep 9, 2021
b31804b
Apply aot intrinsics to riscv
no1wudi Sep 9, 2021
88192ab
Merge pull request #739 from no1wudi/main
wenyongh Sep 9, 2021
ea835db
Enable wamr-test-suites on MacOS (#740)
yamt Sep 10, 2021
e07b580
Change arg name 'export' to other to fix keyword conflict in C++11 (#…
csegarragonz Sep 11, 2021
b1173d1
Allocate correct space for results before native callback is run (#747)
Sep 13, 2021
ed32693
Fix calling multi-module import func issue (#748)
wenyongh Sep 14, 2021
76d641c
Update wasm_c_api to use vector types (#751)
saju Sep 16, 2021
310feb6
Fix compilation warnings (#754)
wenyongh Sep 16, 2021
7e60a5d
Update document: add SGX to key feature list (#755)
wenyongh Sep 16, 2021
7be0d38
Implement SIMD latest opcodes and update LLVM to 13.0 (#758)
wenyongh Sep 17, 2021
1ad76f4
zephyr: add module.yml and fix riscv compile error (#763)
wenyongh Sep 24, 2021
b5a67cb
Fix several issues of document, spec test script and simd (#767)
wenyongh Sep 29, 2021
9ef37dd
Implement source debugging for interpreter and AOT (#769)
wenyongh Sep 29, 2021
7191ecf
Customize clang-format coding styles based on Mozilla template (#770)
wenyongh Oct 6, 2021
8d9bf18
Make include headers follow strict protoype rule (#773)
kfessel Oct 8, 2021
6415e1b
Apply clang-format for interpreter source files (#772)
wenyongh Oct 8, 2021
52b6c73
Apply clang-format for more src files and update spec test script (#775)
wenyongh Oct 8, 2021
0be1f68
Fix source debugging issues (#776)
xujuntwt95329 Oct 9, 2021
03494f9
Refactor CI rules: merge ubuntu/macos/android, enable spec test (#777)
wenyongh Oct 11, 2021
ee1ae4d
Fix CI issues (#781)
wenyongh Oct 12, 2021
8edca21
Enable triggering workflows on push events (#783)
wenyongh Oct 12, 2021
c94e752
Allow empty import array for wasm-c-api wasm_instance_new (#782)
mykmartin Oct 12, 2021
dc65d29
Set APP_THREAD_STACK_SIZE_DEFAULT/MIN for POSIX platforms (#779)
DS-LK Oct 12, 2021
fb4afc7
Apply clang-format for core/iwasm compilation and libraries (#784)
wenyongh Oct 13, 2021
17f62ad
Apply clang-format for core/shared and product-mini files (#785)
wenyongh Oct 14, 2021
250aba6
Sync up with wabt latest modification (#296) (#786)
lum1n0us Oct 14, 2021
dd9b4e0
Fix WASI type/macro misalignments (#766)
csegarragonz Oct 14, 2021
b46b663
Enhance spec test workflow to support x86_32 target (#787)
lum1n0us Oct 15, 2021
a121e45
Simplify build setup for zephyr (#789)
no1wudi Oct 15, 2021
3dff801
Fix app heap corrupted unchecked issue (#788)
wenyongh Oct 15, 2021
808ad2e
Add __umodsi3 to target symbol map in aot_reloc_arm.c (#793)
yamt Oct 19, 2021
68d72c3
Fix a wrong alignment assumption when emitting aot file (#792)
yamt Oct 19, 2021
225f5d0
Enable to trigger code guideline checks when PR is created (#790)
lum1n0us Oct 19, 2021
3224298
Apply clang-format for more source files (#795)
wenyongh Oct 21, 2021
6b3a939
Enable auto install wasi-sdk when build wamr-sdk (#796)
wenyongh Oct 22, 2021
1a987ae
Refine wamr-sdk build scripts (#801)
lum1n0us Oct 26, 2021
788e14e
Enable emitting custom name section to aot file (#794)
JavanZhu Oct 26, 2021
51a00a4
Disable source debugging by default (#804)
no1wudi Oct 26, 2021
3d5a0bf
Enhance workflows by caching llvm directories directly (#805)
lum1n0us Oct 27, 2021
164c3bf
Fix lldb wasm patch to enable source debugging for windows (#806)
xujuntwt95329 Oct 27, 2021
5face80
Fix spec test workflow issue and CI Dockerfile issue (#810)
wenyongh Oct 30, 2021
40ca546
Remove duplicated wasi_dircookie_t typedef in libc_wasi_wrapper.h (#808)
Oct 30, 2021
83df860
Support random debug port by assigning port = 0 (#807)
xujuntwt95329 Oct 30, 2021
4d14e41
Build projects in wamr-test-suites with multiple cores (#811)
wenyongh Oct 30, 2021
3fa91df
Simplify some string size calculation when emitting AOT file (#813)
no1wudi Nov 1, 2021
703e724
[source debug] process ModuleInfo query message (#815)
xujuntwt95329 Nov 2, 2021
c591610
Add CI tasks on SGX platform (#817)
lum1n0us Nov 5, 2021
9424dad
Implement os_time_get_boot_microsecond() for sgx platform (#818)
wenyongh Nov 6, 2021
403a7d3
Refine interp/aot string storage and emitting (#820)
wenyongh Nov 8, 2021
487072a
Speed up the spec case test by parallelism (#819)
lum1n0us Nov 8, 2021
2613a68
aot_reloc_x86_64: Fix pointer overflows (#809)
yamt Nov 8, 2021
69c004e
Enable SGX spec test for AOT mode and add SIMD option (#821)
lum1n0us Nov 8, 2021
d1be75c
wamrc: return a non-zero exit code on failure (#822)
yamt Nov 9, 2021
5b62fdd
[skip ci] reorder options of test_wamr.sh (#824)
lum1n0us Nov 10, 2021
6edabbf
Add __umoddi3 to target symbol map in aot_reloc_arm.c (#828)
yamt Nov 10, 2021
0af7522
Fix fail to get builtin functions in indirect call (XIP) mode (#829)
no1wudi Nov 11, 2021
9281286
Enable huge page for posix platforms (#825)
wenyongh Nov 12, 2021
a1ad950
Enable LLVM link time optimization (LTO) for AOT (#831)
wenyongh Nov 13, 2021
64be6ec
Fix potential pointer overflows (#826)
wenyongh Nov 15, 2021
37a14c9
Add more reloc symbols for target arm/thumb/riscv (#834)
wenyongh Nov 15, 2021
3ded9ec
Apply clang format for samples files (#833)
wenyongh Nov 15, 2021
5d48a18
wamr: Add shared memory and memory tracing config (#835)
DS-LK Nov 16, 2021
1dccf39
Enable ref types and bulk memory by default for wamrc (#838)
lum1n0us Nov 18, 2021
e64b6e8
Fix bug of destroy_callback_list not cleared when thread mgr destroy …
DS-LK Nov 23, 2021
39c68f6
Fix Win32 build error (#843)
wenyongh Nov 23, 2021
16ebfc3
Fix sample gui compile error (#845)
wenyongh Nov 23, 2021
d03a57f
fix link in multi_module.md (#846)
Therdel Nov 25, 2021
9b0b33e
fix duplicated debug instance id in multiple native thread issue (#847)
xujuntwt95329 Nov 25, 2021
25b8f88
Fix win32 aot endian and machine type check errors (#855)
wenyongh Nov 30, 2021
8d1c56b
Implement atomic and memset/memmove/memcpy intrinsic for riscv (#841)
no1wudi Nov 30, 2021
212810b
Fix issue of wasm/aot file malformed format (#853)
JavanZhu Nov 30, 2021
b73edc8
Refine code when aux stack global isn't found (#862)
wenyongh Dec 3, 2021
c8fe100
Don't throw exception while module_malloc failed (#860)
no1wudi Dec 3, 2021
2af5ae5
[source debug] refine some code in source debugging (#856)
xujuntwt95329 Dec 6, 2021
3f808d4
Fix -m32 unrecognized issue when compile 32-bit target on some 64-bit…
robinvanemden Dec 6, 2021
b490a22
Enhance XIP and add XIP document (#863)
wenyongh Dec 6, 2021
a519368
Fix compile error when build target X86_32 (#869)
wenyongh Dec 6, 2021
a06ede0
update source debugging document (#872)
xujuntwt95329 Dec 6, 2021
56ae28b
Implement relocation R_AARCH64_JUMP26 for aarch64 (#873)
wenyongh Dec 7, 2021
b9fd8f9
update IoT cloud demo (#876)
xujuntwt95329 Dec 7, 2021
5fbf03f
Exclude IoT-APP-Store-Demo from code guideline check (#879)
wenyongh Dec 8, 2021
208cafc
Add new E_TYPE_XIP to indicate XIP mode (#874)
no1wudi Dec 8, 2021
7505ae2
Fix run XIP file failure on SGX platform (#880)
wenyongh Dec 8, 2021
915b26b
Remove hardcoded stack size while creating pthread (#881)
no1wudi Dec 10, 2021
5547924
Refine codes and fix several issues (#882)
wenyongh Dec 10, 2021
e3ef216
Add mipsel to wamrc supported target list (#887)
wenyongh Dec 13, 2021
2917a0c
libc-builtin: Fix the signature of strncasecmp native function (#888)
DS-LK Dec 13, 2021
bbaf0a3
Fix wamrc endian/bit-width check invalid issue on win32 target (#886)
wenyongh Dec 14, 2021
e70867c
Update spec test cases to latest version (#889)
lum1n0us Dec 15, 2021
45ace31
fix definition of int64_t in libc-builtin-sysroot (#898)
xujuntwt95329 Dec 15, 2021
4258b24
add lldb patch to attribution (#900)
xujuntwt95329 Dec 15, 2021
66e6e1f
Clear more compile warnings reported by -Wshadow flag (#899)
wenyongh Dec 16, 2021
f2d87ec
code guideline: Fix bug of mischeck file name with '_' (#901)
lum1n0us Dec 16, 2021
5be427b
xip: Lookup float constants from table to reduce relocations (#894)
wenyongh Dec 16, 2021
a9f1c2b
Port WAMR to ESP-IDF (#892)
1c3t3a Dec 20, 2021
a41c1ad
Don't use constant float table on arm and riscv (#903)
no1wudi Dec 20, 2021
4cc4625
Cleanup output format warnings (#904)
no1wudi Dec 20, 2021
af251e4
Remove PRI macro control in wasm_application.c (#905)
wenyongh Dec 20, 2021
ccb2de3
Enable source debugging feature for windows platform (#910)
xujuntwt95329 Dec 22, 2021
ac3f7dc
Enable source debugger CI on windows and darwin (#912)
xujuntwt95329 Dec 24, 2021
89a1c82
Implement GetCurrentThreadStackLimits() for Windows 7 (#914)
wenyongh Dec 27, 2021
635084c
Fix sgx platform issues (#916)
wenyongh Dec 28, 2021
98bacfe
Fix sensor framework timer issue and update sensor sample (#917)
wenyongh Dec 28, 2021
936206f
Update Zephyr document, add esp32c3 and particle_argon support(#920)
wallento Dec 29, 2021
50b6474
Add WASI ABI compatibility check for multi-module (#913)
lum1n0us Dec 29, 2021
90cccda
Refine some error msg, comment and document (#921)
wenyongh Dec 29, 2021
20867c9
Fix XNNPACK workload build error (#922)
lum1n0us Dec 29, 2021
cdf3063
Fix compile warning on non-x86 targets, fix alios build error (#923)
wenyongh Dec 30, 2021
6b733b8
Automatically detect the host platform in CMakeLists.txt (#929)
PiotrSikora Jan 4, 2022
2c3f284
Add extern "C" in libc-builtin-sysroot pthread.h (#933)
xujuntwt95329 Jan 4, 2022
78414b6
ESP IDF fixes (#927)
wallento Jan 5, 2022
9169eff
Remove hardcoded stack size in thread_manager.c (#931)
no1wudi Jan 5, 2022
ff997c2
Update document of multi-module (#930)
lum1n0us Jan 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
146 changes: 22 additions & 124 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# using [clang-formt-12 options](https://releases.llvm.org/12.0.0/tools/clang/docs/ClangFormatStyleOptions.html)
RawStringFormats:
- Language: Cpp
- Language: Cpp
Delimiters:
- c
- C
Expand All @@ -13,35 +14,23 @@ RawStringFormats:
- h
- hpp
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
CanonicalDelimiter: ''
BasedOnStyle: google
BasedOnStyle: Mozilla

Language: Cpp
BasedOnStyle: Mozilla
# 6.1
IndentWidth: 4
ContinuationIndentWidth: 4
# 6.2
TabWidth: 4
UseTab: Never
# 6.3
ColumnLimit: 80
# 6.9
AlignAfterOpenBracket: Align
AllowAllArgumentsOnNextLine: false
AlignConsecutiveMacros: true
AllowShortBlocksOnASingleLine: true
AlwaysBreakAfterReturnType: All
BinPackArguments: true
BinPackParameters: false
BreakBeforeBinaryOperators: NonAssignment
BinPackParameters: true
# 6.10
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
Expand All @@ -60,104 +49,13 @@ BraceWrapping:
SplitEmptyFunction: true
SplitEmptyRecord: false
SplitEmptyNamespace: true
ColumnLimit: 79
ContinuationIndentWidth: 2
DerivePointerAlignment: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 1
- Regex: ".*"
Priority: 3
IndentPPDirectives: None
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: None
PointerAlignment: Right
ReflowComments: false
SortIncludes: false
Standard: Auto
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION

# AccessModifierOffset: -2
# AlignConsecutiveAssignments: false
# AlignConsecutiveDeclarations: false
# AlignEscapedNewlines: Right
# AlignOperands: true
# AlignTrailingComments: true
# AllowAllConstructorInitializersOnNextLine: true
# AllowAllParametersOfDeclarationOnNextLine: false
# AllowShortCaseLabelsOnASingleLine: false
# AllowShortFunctionsOnASingleLine: Inline
# AllowShortLambdasOnASingleLine: All
# AllowShortIfStatementsOnASingleLine: Never
# AllowShortLoopsOnASingleLine: false
# AlwaysBreakAfterDefinitionReturnType: TopLevel
# AlwaysBreakAfterReturnType: TopLevel
# AlwaysBreakBeforeMultilineStrings: false
# AlwaysBreakTemplateDeclarations: Yes
# BreakBeforeInheritanceComma: false
# BreakInheritanceList: BeforeComma
# BreakBeforeTernaryOperators: true
# BreakConstructorInitializersBeforeComma: false
# BreakConstructorInitializers: BeforeComma
# BreakAfterJavaFieldAnnotations: false
# BreakStringLiterals: true
# CommentPragmas: '^ IWYU pragma:'
# CompactNamespaces: false
# ConstructorInitializerAllOnOneLineOrOnePerLine: false
# ConstructorInitializerIndentWidth: 2
# Cpp11BracedListStyle: false
# DisableFormat: false
# ExperimentalAutoDetectBinPacking: false
# FixNamespaceComments: false
# ForEachMacros:
# - foreach
# - Q_FOREACH
# - BOOST_FOREACH
# IncludeIsMainRegex: '(Test)?$'
# IndentCaseLabels: true
# IndentWrappedFunctionNames: false
# JavaScriptQuotes: Leave
# JavaScriptWrapImports: true
# KeepEmptyLinesAtTheStartOfBlocks: true
# MacroBlockBegin: ''
# MacroBlockEnd: ''
# MaxEmptyLinesToKeep: 1
# ObjCBinPackProtocolList: Auto
# ObjCBlockIndentWidth: 2
# ObjCSpaceAfterProperty: true
# ObjCSpaceBeforeProtocolList: false
# PenaltyBreakAssignment: 2
# PenaltyBreakBeforeFirstCallParameter: 19
# PenaltyBreakComment: 300
# PenaltyBreakFirstLessLess: 120
# PenaltyBreakString: 1000
# PenaltyBreakTemplateDeclaration: 10
# PenaltyExcessCharacter: 1000000
# PenaltyReturnTypeOnItsOwnLine: 200
# SortIncludes: true
# SortUsingDeclarations: true
# SpaceAfterCStyleCast: false
# SpaceAfterLogicalNot: false
# SpaceAfterTemplateKeyword: false
# SpaceBeforeAssignmentOperators: true
# SpaceBeforeCpp11BracedList: false
# SpaceBeforeCtorInitializerColon: true
# SpaceBeforeInheritanceColon: true
# SpaceBeforeParens: ControlStatements
# SpaceBeforeRangeBasedForLoopColon: true
# SpaceInEmptyParentheses: false
# SpacesBeforeTrailingComments: 1
# SpacesInAngles: false
# SpacesInContainerLiterals: true
# SpacesInCStyleCastParentheses: false
# SpacesInParentheses: false
# SpacesInSquareBrackets: false
# TabWidth: 4
# UseTab: Never
# ...
# 6.27
BreakBeforeBinaryOperators: NonAssignment

# additional
AlignEscapedNewlines: Left
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllArgumentsOnNextLine: false
PointerAlignment: Right
SpaceAroundPointerQualifiers: After
SortIncludes: false
16 changes: 16 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# refer to https://clang.llvm.org/extra/clang-tidy/checks/list.html

Checks: '-*, readability-identifier-naming, clang-analyzer-core.*,'
WarningsAsErrors: '-*'
HeaderFilterRegex: ''
FormatStyle: file
InheritParentConfig: false
AnalyzeTemporaryDtors: false
User: wamr
CheckOptions:
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.ParameterCase
value: lower_case
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
112 changes: 0 additions & 112 deletions .github/workflows/android.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/codeing_guildelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Coding Guidelines

on:
# will be triggered on PR events
pull_request:
# allow to be triggered manually
workflow_dispatch:

# Cancel any in-flight jobs for the same PR/branch so there's only one active
# at a time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Cancel any in-flight jobs for the same PR/branch so there's only one active
# at a time
cancel_previous:
runs-on: ubuntu-latest
steps:
- name: Cancel Workflow Action
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ github.token }}

complinace_job:
needs: cancel_previous
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

# github.event.pull_request.base.label = ${{github.repository}}/${{github.base_ref}}
- name: Run Coding Guidelines Checks
run: /usr/bin/env python3 ./ci/coding_guidelines_check.py --commits ${{ github.event.pull_request.base.sha }}..HEAD
Loading