aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorChia-hung Duan <chiahungduan@google.com>2022-02-25 18:17:30 +0000
committerChia-hung Duan <chiahungduan@google.com>2022-02-25 19:04:56 +0000
commit9445b39673c81e9b5ffeda0f71be0c1476e9f313 (patch)
tree1a58978363f96942804dfdcffee69ddff092e82e /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parentd04d9220e1c3d1b72cd2c7401fe684af16973bcc (diff)
downloadllvm-9445b39673c81e9b5ffeda0f71be0c1476e9f313.zip
llvm-9445b39673c81e9b5ffeda0f71be0c1476e9f313.tar.gz
llvm-9445b39673c81e9b5ffeda0f71be0c1476e9f313.tar.bz2
[mlir] Support verification order (2/3)
This change gives explicit order of verifier execution and adds `hasRegionVerifier` and `verifyWithRegions` to increase the granularity of verifier classification. The orders are as below, 1. InternalOpTrait will be verified first, they can be run independently. 2. `verifyInvariants` which is constructed by ODS, it verifies the type, attributes, .etc. 3. Other Traits/Interfaces that have marked their verifier as `verifyTrait` or `verifyWithRegions=0`. 4. Custom verifier which is defined in the op and has marked `hasVerifier=1` If an operation has regions, then it may have the second phase, 5. Traits/Interfaces that have marked their verifier as `verifyRegionTrait` or `verifyWithRegions=1`. This implies the verifier needs to access the operations in its regions. 6. Custom verifier which is defined in the op and has marked `hasRegionVerifier=1` Note that the second phase will be run after the operations in the region are verified. Based on the verification order, you will be able to avoid verifying duplicate things. Reviewed By: Mogball Differential Revision: https://reviews.llvm.org/D116789
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions