| /third_party/rust/crates/log/rfcs/ |
| D | 0296-structured-logging.md | 1 - Feature Name: `structured_logging` 2 - Start Date: 2019-03-11 3 - RFC PR: [log/rfcs#0296](https://github.com/rust-lang-nursery/log/pull/296) 8 …structured logging to the `log` crate in both `std` and `no_std` environments, allowing log record… 10 `log` will provide an API for capturing structured data that offloads complex serialization to de-f… 12 The API is heavily inspired by `slog` and `tokio-trace`. 17 - [Motivation](#motivation) 18 - [What is structured logging?](#what-is-structured-logging) 19 - [Why do we need structured logging in `log`?](#why-do-we-need-structured-logging-in-log) 20 - [Guide-level explanation](#guide-level-explanation) [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/source/opt/ |
| D | loop_utils.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 69 context->GetLoopDescriptor(loop->GetHeaderBlock()->GetParent())), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 102 // By construction, structured control flow already has a dedicated exit 107 // Clone |loop_| and remap its instructions. Newly created blocks 119 // Clone |loop_| and remap its instructions, as above. Overload to compute 123 // Clone the |loop_| and make the new loop branch to the second loop on exit. 139 // 1. That the loop is in structured order.
|
| D | loop_unswitch_pass.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 49 // - The loop has any instruction that will prevent it; 50 // - The loop invariant condition is not uniform. 63 // - The loop has no instructions that prevents it (such as barrier); 64 // - The loop has one conditional branch or switch that do not depends on the 66 // - The loop invariant condition is uniform; 69 if (loop_->IsSafeToClone()) return false; in CanUnswitchLoop() 71 CFG& cfg = *context_->cfg(); in CanUnswitchLoop() 73 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() 75 if (loop_->GetLatchBlock() == bb) { in CanUnswitchLoop() [all …]
|
| D | inline_pass.h | 9 // http://www.apache.org/licenses/LICENSE-2.0 82 // Clone and map callee locals. Return true if successful. 88 // Create return variable for callee clone code. The return type of 98 // Clone operands which must be in same block as consumer instructions. 132 // requires structured control flow, so return false if control flow not 133 // structured ie. module is not a shader.
|
| D | loop_utils.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 42 // Utility class to rewrite out-of-loop uses of an in-loop definition in terms 55 cfg_(context_->cfg()), in LCSSARewriter() 58 merge_block_id_(merge_block ? merge_block->id() : 0) {} in LCSSARewriter() 74 (user->opcode() != SpvOpPhi || bb != GetParent(user)) && in RewriteUse() 77 assert((user->opcode() == SpvOpPhi || bb == GetParent(user)) && in RewriteUse() 82 Instruction* new_def = GetOrBuildIncoming(bb->id()); in RewriteUse() 84 user->SetOperand(operand_index, {new_def->result_id()}); in RewriteUse() 88 // In-place update of some managers (avoid full invalidation). 90 analysis::DefUseManager* def_use_mgr = base_->context_->get_def_use_mgr(); in UpdateManagers() [all …]
|
| D | inline_pass.cpp | 9 // http://www.apache.org/licenses/LICENSE-2.0 26 // Indices of operands in SPIR-V instructions 37 uint32_t resultId = context()->TakeNextId(); in AddPointerToType() 47 context()->AddType(std::move(type_inst)); in AddPointerToType() 51 context()->get_type_mgr()->GetTypeAndPointerType(type_id, in AddPointerToType() 53 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType() 62 (*block_ptr)->AddInstruction(std::move(newBranch)); in AddBranch() 73 (*block_ptr)->AddInstruction(std::move(newBranch)); in AddBranchCond() 83 (*block_ptr)->AddInstruction(std::move(newLoopMerge)); in AddLoopMerge() 95 newStore->AddDebugLine(line_inst); in AddStore() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
| D | loop_utils.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 69 context->GetLoopDescriptor(loop->GetHeaderBlock()->GetParent())), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 102 // By construction, structured control flow already has a dedicated exit 107 // Clone |loop_| and remap its instructions. Newly created blocks 119 // Clone |loop_| and remap its instructions, as above. Overload to compute 123 // Clone the |loop_| and make the new loop branch to the second loop on exit. 139 // 1. That the loop is in structured order.
|
| D | loop_unswitch_pass.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 49 // - The loop has any instruction that will prevent it; 50 // - The loop invariant condition is not uniform. 63 // - The loop has no instructions that prevents it (such as barrier); 64 // - The loop has one conditional branch or switch that do not depends on the 66 // - The loop invariant condition is uniform; 69 if (loop_->IsSafeToClone()) return false; in CanUnswitchLoop() 71 CFG& cfg = *context_->cfg(); in CanUnswitchLoop() 73 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() 75 if (loop_->GetLatchBlock() == bb) { in CanUnswitchLoop() [all …]
|
| D | inline_pass.h | 9 // http://www.apache.org/licenses/LICENSE-2.0 82 // Clone and map callee locals. Return true if successful. 88 // Create return variable for callee clone code. The return type of 98 // Clone operands which must be in same block as consumer instructions. 132 // requires structured control flow, so return false if control flow not 133 // structured ie. module is not a shader.
|
| D | loop_utils.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 42 // Utility class to rewrite out-of-loop uses of an in-loop definition in terms 55 cfg_(context_->cfg()), in LCSSARewriter() 58 merge_block_id_(merge_block ? merge_block->id() : 0) {} in LCSSARewriter() 74 (user->opcode() != SpvOpPhi || bb != GetParent(user)) && in RewriteUse() 77 assert((user->opcode() == SpvOpPhi || bb == GetParent(user)) && in RewriteUse() 82 Instruction* new_def = GetOrBuildIncoming(bb->id()); in RewriteUse() 84 user->SetOperand(operand_index, {new_def->result_id()}); in RewriteUse() 88 // In-place update of some managers (avoid full invalidation). 90 analysis::DefUseManager* def_use_mgr = base_->context_->get_def_use_mgr(); in UpdateManagers() [all …]
|
| D | inline_pass.cpp | 9 // http://www.apache.org/licenses/LICENSE-2.0 26 // Indices of operands in SPIR-V instructions 37 uint32_t resultId = context()->TakeNextId(); in AddPointerToType() 47 context()->AddType(std::move(type_inst)); in AddPointerToType() 51 context()->get_type_mgr()->GetTypeAndPointerType(type_id, in AddPointerToType() 53 context()->get_type_mgr()->RegisterType(resultId, *pointerTy); in AddPointerToType() 62 (*block_ptr)->AddInstruction(std::move(newBranch)); in AddBranch() 73 (*block_ptr)->AddInstruction(std::move(newBranch)); in AddBranchCond() 83 (*block_ptr)->AddInstruction(std::move(newLoopMerge)); in AddLoopMerge() 95 newStore->AddDebugLine(line_inst); in AddStore() [all …]
|
| /third_party/spirv-tools/source/opt/ |
| D | loop_utils.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 69 context->GetLoopDescriptor(loop->GetHeaderBlock()->GetParent())), in LoopUtils() 71 function_(*loop_->GetHeaderBlock()->GetParent()) {} in LoopUtils() 102 // By construction, structured control flow already has a dedicated exit 107 // Clone |loop_| and remap its instructions. Newly created blocks 119 // Clone |loop_| and remap its instructions, as above. Overload to compute 123 // Clone the |loop_| and make the new loop branch to the second loop on exit. 139 // 1. That the loop is in structured order.
|
| D | loop_unswitch_pass.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 42 // - The loop has any instruction that will prevent it; 43 // - The loop invariant condition is not uniform. 56 // - The loop has no instructions that prevents it (such as barrier); 57 // - The loop has one conditional branch or switch that do not depends on the 59 // - The loop invariant condition is uniform; 62 if (loop_->IsSafeToClone()) return false; in CanUnswitchLoop() 64 CFG& cfg = *context_->cfg(); in CanUnswitchLoop() 66 for (uint32_t bb_id : loop_->GetBlocks()) { in CanUnswitchLoop() 68 if (loop_->GetLatchBlock() == bb) { in CanUnswitchLoop() [all …]
|
| D | inline_pass.h | 9 // http://www.apache.org/licenses/LICENSE-2.0 82 // Clone and map callee locals. Return true if successful. 88 // Create return variable for callee clone code. The return type of 98 // Clone operands which must be in same block as consumer instructions. 132 // requires structured control flow, so return false if control flow not 133 // structured ie. module is not a shader.
|
| D | loop_utils.cpp | 7 // http://www.apache.org/licenses/LICENSE-2.0 41 // Utility class to rewrite out-of-loop uses of an in-loop definition in terms 54 cfg_(context_->cfg()), in LCSSARewriter() 57 merge_block_id_(merge_block ? merge_block->id() : 0) {} in LCSSARewriter() 73 (user->opcode() != spv::Op::OpPhi || bb != GetParent(user)) && in RewriteUse() 76 assert((user->opcode() == spv::Op::OpPhi || bb == GetParent(user)) && in RewriteUse() 81 Instruction* new_def = GetOrBuildIncoming(bb->id()); in RewriteUse() 83 user->SetOperand(operand_index, {new_def->result_id()}); in RewriteUse() 87 // In-place update of some managers (avoid full invalidation). 89 analysis::DefUseManager* def_use_mgr = base_->context_->get_def_use_mgr(); in UpdateManagers() [all …]
|
| /third_party/rust/crates/log/src/kv/ |
| D | key.rs | 1 //! Structured keys. 11 fn to_key(&self) -> Key; in to_key() 18 fn to_key(&self) -> Key { in to_key() 24 fn to_key(&self) -> Key { in to_key() 30 fn to_key(&self) -> Key { in to_key() 35 /// A key in a structured key-value pair. 36 #[derive(Clone)] 43 pub fn from_str(key: &'k str) -> Self { in from_str() 48 pub fn as_str(&self) -> &str { in as_str() 54 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() [all …]
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-diagnostics/src/ |
| D | lib.rs | 6 //! user-authored source code. We are especially not in the position to offer 10 //! Instead, we "bubble up" raw, structured diagnostics until the `hir` crate, 13 //! ad-hoc at the moment. Anyways, we get a bunch of ide-friendly diagnostic 16 //! fixits. By the way, that's why we want to keep diagnostics structured 17 //! internally -- so that we have all the info to make fixes. 20 //! rendering, optional fixes and tests. It's OK if some low-level compiler 23 //! There are also a couple of ad-hoc diagnostics implemented directly here, we 82 #[derive(Copy, Clone, Debug, PartialEq)] 86 pub fn as_str(&self) -> &str { in as_str() 103 fn new(code: &'static str, message: impl Into<String>, range: TextRange) -> Diagnostic { in new() [all …]
|
| /third_party/rust/crates/syn/src/ |
| D | attr.rs | 20 /// - Outer attributes like `#[repr(transparent)]`. These appear outside or 23 /// - Inner attributes like `#![feature(proc_macro)]`. These appear inside 26 /// - Outer one-line doc comments like `/// Example`. 28 /// - Inner one-line doc comments like `//! Please file an issue`. 30 /// - Outer documentation blocks `/** Example */`. 32 /// - Inner documentation blocks `/*! Please file an issue */`. 42 /// - Meta::Path — attributes whose information content conveys just a 45 /// - Meta::List — attributes that carry arbitrary tokens after the 49 /// - Meta::NameValue — attributes with an `=` sign after the path, 58 /// #[derive(Copy, Clone)] [all …]
|
| /third_party/rust/rust/compiler/rustc_passes/src/ |
| D | check_const.rs | 1 //! This pass checks HIR bodies that may be evaluated at compile-time (e.g., `const`, `static`, 2 //! `const fn`) for structured control flow (e.g. `if`, `while`), which is forbidden in a const 5 //! By the time the MIR const-checker runs, these high-level constructs have been lowered to 6 //! control-flow primitives (e.g., `Goto`, `SwitchInt`), making it tough to properly attribute 7 //! errors. We still look for those primitives in the MIR const-checker to ensure nothing slips 8 //! through, but errors for structured control flow in a `const` should be emitted here. 23 #[derive(Clone, Copy)] 30 fn name(self) -> String { in name() 37 fn required_feature_gates(self) -> Option<&'static [Symbol]> { in required_feature_gates() 67 #[derive(Copy, Clone)] [all …]
|
| /third_party/rust/rust/compiler/rustc_hir_analysis/src/variance/ |
| D | terms.rs | 3 // Terms are structured as a straightforward tree. Rather than rely on 22 #[derive(Copy, Clone, Debug)] 25 #[derive(Copy, Clone)] 33 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 52 /// variance is hardcoded, records the item-id and the hardcoded 67 ) -> TermsContext<'a, 'tcx> { in determine_parameters_to_be_inferred() 77 // See the following for a discussion on dep-graph management. in determine_parameters_to_be_inferred() 79 // - https://rustc-dev-guide.rust-lang.org/query.html in determine_parameters_to_be_inferred() 80 // - https://rustc-dev-guide.rust-lang.org/variance.html in determine_parameters_to_be_inferred() 107 fn lang_items(tcx: TyCtxt<'_>) -> Vec<(LocalDefId, Vec<ty::Variance>)> { in lang_items()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-ssr/src/ |
| D | lib.rs | 45 // Available via the command `rust-analyzer.ssr`. 60 // | VS Code | **rust-analyzer: Structural Search Replace** 95 // A structured search replace rule. Create by calling `parse` on a str. 98 /// A structured pattern that we're searching for. 131 ) -> Result<MatchFinder<'db>, SsrError> { in in_context() 140 pub fn at_first_file(db: &'db ide_db::RootDatabase) -> Result<MatchFinder<'db>, SsrError> { in at_first_file() 159 pub fn add_rule(&mut self, rule: SsrRule) -> Result<(), SsrError> { in add_rule() 171 pub fn edits(&self) -> IntMap<FileId, TextEdit> { in edits() 199 pub fn add_search_pattern(&mut self, pattern: SsrPattern) -> Result<(), SsrError> { in add_search_pattern() 211 pub fn matches(&self) -> SsrMatches { in matches() [all …]
|
| /third_party/skia/third_party/externals/tint/src/reader/spirv/ |
| D | function.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 39 // is more than 1, then the block must be a structured header, i.e. it needs 42 // because SPIR-v is designed to easily map back to structured control flow 43 // in GLSL (and C). In GLSL and C, those forward-flow edges don't have a 48 // A back-edge: An edge from a node to one of its ancestors in a depth-first 56 // The source block is a "break block" as defined by SPIR-V. 60 // The source block is a "continue block" as defined by SPIR-V. 62 // An edge from a node to the merge block of the nearest enclosing structured 88 /// The position of this block in the reverse structured post-order. 107 /// The immediately enclosing structured construct. If this block is not [all …]
|
| /third_party/rust/rust/src/tools/compiletest/src/ |
| D | json.rs | 34 #[derive(Deserialize, Clone)] 60 fn first_callsite_in_file(&self, file_name: &str) -> &DiagnosticSpan { in first_callsite_in_file() 72 #[derive(Deserialize, Clone)] 81 #[derive(Deserialize, Clone)] 87 pub fn rustfix_diagnostics_only(output: &str) -> String { in rustfix_diagnostics_only() 94 pub fn extract_rendered(output: &str) -> String { in extract_rendered() 135 // preserve non-JSON lines, such as ICEs in extract_rendered() 142 pub fn parse_output(file_name: &str, output: &str, proc_res: &ProcRes) -> Vec<Error> { in parse_output() 146 fn parse_line(file_name: &str, line: &str, output: &str, proc_res: &ProcRes) -> Vec<Error> { in parse_line() 147 // The compiler sometimes intermingles non-JSON stuff into the in parse_line() [all …]
|
| /third_party/rust/rust/compiler/rustc_expand/src/mbe/ |
| D | macro_rules.rs | 53 pub(crate) fn make(mut self: Box<ParserAnyMacro<'a>>, kind: AstFragmentKind) -> AstFragment { in make() 72 // We allow semicolons at the end of expressions -- e.g., the semicolon in in make() 111 ) -> Box<dyn MacResult + 'cx> { in expand() 133 ) -> Box<dyn MacResult + 'cx> { in macro_rules_dummy_expander() 149 fn build_failure(tok: Token, position: usize, msg: &'static str) -> Self::Failure; in build_failure() 159 fn description() -> &'static str; in description() 161 fn recovery() -> Recovery { in recovery() 172 fn build_failure(_tok: Token, _position: usize, _msg: &'static str) -> Self::Failure {} in build_failure() 174 fn description() -> &'static str { in description() 192 ) -> Box<dyn MacResult + 'cx> { in expand_macro() [all …]
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/xml/ |
| D | README.adoc | 1 // Copyright 2014-2024 The Khronos Group Inc. 3 // SPDX-License-Identifier: CC-BY-4.0 29 * Clone the repository and create a branch to work in locally 34 of platform-dependent headers `vulkan_<platform>.h`; and runs a simple 45 server (your personal repository clone of KhronosGroup/Vulkan-Docs on 62 This is a similarly structured XML file used to produce headers for 78 We strongly recommend using the Khronos-provided Docker image, which has all 79 needed build tools pre-installed. 83 MacOS by following the recipe in the Dockerfile for the Khronos-provided 90 * `vk.xml` - XML API description. [all …]
|