| /llvm-project-15.0.7/mlir/test/lib/Dialect/Test/ |
| H A D | TestInterfaces.h | 21 struct Effect : public SideEffects::Effect { struct 22 using SideEffects::Effect::Effect; 25 using Base = SideEffects::Effect::Base<Derived, Effect>; argument 27 static bool classof(const SideEffects::Effect *effect); 30 using EffectInstance = SideEffects::EffectInstance<Effect>; 32 struct Concrete : public Effect::Base<Concrete> {};
|
| H A D | TestInterfaces.cpp | 5 bool mlir::TestEffects::Effect::classof( in classof() 6 const mlir::SideEffects::Effect *effect) { in classof()
|
| /llvm-project-15.0.7/mlir/include/mlir/Interfaces/ |
| H A D | SideEffectInterfaces.h | 26 class Effect { 66 Effect(TypeID id) : id(id) {} in Effect() function 217 struct Effect : public SideEffects::Effect { struct 218 using SideEffects::Effect::Effect; 222 using Base = SideEffects::Effect::Base<DerivedEffect, Effect>; argument 224 static bool classof(const SideEffects::Effect *effect); 226 using EffectInstance = SideEffects::EffectInstance<Effect>; 231 struct Allocate : public Effect::Base<Allocate> {}; 236 struct Free : public Effect::Base<Free> {}; 241 struct Read : public Effect::Base<Read> {}; [all …]
|
| H A D | SideEffectInterfaceBase.td | 1 //===-- SideEffectInterfaceBase.td - Side Effect Base ------*- tablegen -*-===// 62 /// `Effect` and place them in 'effects'. 63 template <typename Effect> void getEffects( 68 return !llvm::isa<Effect>(it.getEffect()); 73 template <typename Effect> bool hasEffect() { 77 return llvm::isa<Effect>(it.getEffect()); 82 template <typename Effect> bool onlyHasEffect() { 86 return isa<Effect>(it.getEffect()); 113 /// Return the effect of the given type `Effect` that is applied to the 115 template <typename Effect> [all …]
|
| H A D | SideEffectInterfaces.td | 1 //===-- SideEffectInterfaces.td - Side Effect Interfaces ---*- tablegen -*-===// 28 "::mlir::MemoryEffects::Effect"> { 77 // Effect Traits
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | DumpAST.cpp | 43 Expected<Effect> apply(const Selection &Inputs) override; 62 llvm::Expected<Tweak::Effect> DumpAST::apply(const Selection &Inputs) { in REGISTER_TWEAK() 66 return Effect::showMessage(std::move(OS.str())); in REGISTER_TWEAK() 90 Expected<Effect> apply(const Selection &Inputs) override { in apply() 91 return Effect::showMessage(llvm::to_string(Inputs.ASTSelection)); in apply() 109 Expected<Effect> apply(const Selection &Inputs) override { in apply() 117 return Effect::showMessage(Out.str()); in apply() 145 Expected<Effect> apply(const Selection &Inputs) override { in apply() 149 return Effect::showMessage(std::move(OS.str())); in apply()
|
| H A D | ObjCLocalizeStringLiteral.cpp | 39 Expected<Tweak::Effect> apply(const Selection &Inputs) override; 62 Expected<Tweak::Effect> 77 return Effect::mainFileEdit(SM, std::move(Reps)); in apply()
|
| H A D | RawStringLiteral.cpp | 34 Expected<Effect> apply(const Selection &Inputs) override; 84 Expected<Tweak::Effect> RawStringLiteral::apply(const Selection &Inputs) { in apply() 89 return Effect::mainFileEdit(SM, std::move(Reps)); in apply()
|
| H A D | DefineOutline.cpp | 409 Expected<Effect> apply(const Selection &Sel) override { in apply() 441 auto Effect = Effect::mainFileEdit( in apply() local 443 if (!Effect) in apply() 444 return Effect.takeError(); in apply() 453 auto HeaderFE = Effect::fileEdit(SM, SM.getMainFileID(), in apply() 458 Effect->ApplyEdits.try_emplace(HeaderFE->first, in apply() 460 return std::move(*Effect); in apply()
|
| H A D | SwapIfBranches.cpp | 37 Expected<Effect> apply(const Selection &Inputs) override; 64 Expected<Tweak::Effect> SwapIfBranches::apply(const Selection &Inputs) { in apply() 89 return Effect::mainFileEdit(SrcMgr, std::move(Result)); in apply()
|
| H A D | AnnotateHighlightings.cpp | 29 Expected<Effect> apply(const Selection &Inputs) override; 39 Expected<Tweak::Effect> AnnotateHighlightings::apply(const Selection &Inputs) { in REGISTER_TWEAK() 87 return Effect::mainFileEdit(SM, std::move(Result)); in REGISTER_TWEAK()
|
| H A D | ExpandAutoType.cpp | 41 Expected<Effect> apply(const Selection &Inputs) override; 114 Expected<Tweak::Effect> ExpandAutoType::apply(const Selection& Inputs) { in apply() 143 return Effect::mainFileEdit(SrcMgr, tooling::Replacements(Expansion)); in apply()
|
| H A D | ExpandMacro.cpp | 39 Expected<Tweak::Effect> apply(const Selection &Inputs) override; 108 Expected<Tweak::Effect> ExpandMacro::apply(const Selection &Inputs) { in apply() 127 return Effect::mainFileEdit(SM, std::move(Reps)); in apply()
|
| H A D | ObjCMemberwiseInitializer.cpp | 181 Expected<Tweak::Effect> apply(const Selection &Inputs) override; 264 Expected<Tweak::Effect> 282 Effect E; in apply() 289 auto FE = Effect::fileEdit(SM, SM.getFileID(Interface->getLocation()), in apply() 311 auto FE = Effect::fileEdit(SM, SM.getFileID(Impl->getLocation()), in apply()
|
| H A D | RemoveUsingNamespace.cpp | 37 Expected<Effect> apply(const Selection &Inputs) override; 129 Expected<Tweak::Effect> RemoveUsingNamespace::apply(const Selection &Inputs) { in apply() 202 return Effect::mainFileEdit(SM, std::move(R)); in apply()
|
| H A D | PopulateSwitch.cpp | 53 Expected<Effect> apply(const Selection &Sel) override; 190 Expected<Tweak::Effect> PopulateSwitch::apply(const Selection &Sel) { in apply() 212 return Effect::mainFileEdit( in apply()
|
| H A D | SpecialMembers.cpp | 117 Expected<Effect> apply(const Selection &Inputs) override { in apply() 141 return Effect::mainFileEdit(Inputs.AST->getSourceManager(), in apply()
|
| H A D | DefineInline.cpp | 438 Expected<Effect> apply(const Selection &Sel) override { in apply() 480 auto FE = Effect::fileEdit(SM, SM.getFileID(*Semicolon), in apply() 490 auto FE = Effect::fileEdit(SM, SM.getFileID(Sel.Cursor), in apply() 501 Effect E; in apply()
|
| H A D | AddUsing.cpp | 38 Expected<Effect> apply(const Selection &Inputs) override; 339 Expected<Tweak::Effect> AddUsing::apply(const Selection &Inputs) { in apply() 375 return Effect::mainFileEdit(Inputs.AST->getASTContext().getSourceManager(), in apply()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Tweak.h | 74 struct Effect { struct 82 static Effect showMessage(StringRef S) { in showMessage() argument 83 Effect E; in showMessage() 97 static llvm::Expected<Tweak::Effect> 115 virtual Expected<Effect> apply(const Selection &Sel) = 0;
|
| H A D | Tweak.cpp | 105 Tweak::Effect::fileEdit(const SourceManager &SM, FileID FID, in fileEdit() 114 llvm::Expected<Tweak::Effect> 115 Tweak::Effect::mainFileEdit(const SourceManager &SM, in mainFileEdit() 120 Tweak::Effect E; in mainFileEdit()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/ |
| H A D | TweakTesting.cpp | 63 llvm::Optional<llvm::Expected<Tweak::Effect>> 66 llvm::Optional<llvm::Expected<Tweak::Effect>> Result; in applyTweak() 103 const auto &Effect = **Result; in apply() local 105 return "message:\n" + *Effect.ShowMessage; in apply() 106 if (Effect.ApplyEdits.empty()) in apply() 110 for (auto &It : Effect.ApplyEdits) { in apply()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | MapLattice.h | 96 LatticeJoinEffect Effect = LatticeJoinEffect::Unchanged; in join() local 101 Effect = LatticeJoinEffect::Changed; in join() 103 Effect = LatticeJoinEffect::Changed; in join() 105 return Effect; in join()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | SideEffectInterfaces.cpp | 26 bool MemoryEffects::Effect::classof(const SideEffects::Effect *effect) { in classof() 109 SmallVector<SideEffects::EffectInstance<MemoryEffects::Effect>, 4> effects; in hasSingleEffect()
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.cpp | 273 auto Effect = LatticeJoinEffect::Unchanged; in join() local 279 Effect = LatticeJoinEffect::Changed; in join() 283 Effect = LatticeJoinEffect::Changed; in join() 288 Effect = LatticeJoinEffect::Changed; in join() 316 Effect = LatticeJoinEffect::Changed; in join() 320 return Effect; in join()
|