Home
last modified time | relevance | path

Searched refs:effect (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DSideEffectInterfaces.h142 : effect(effect), resource(resource) {} in effect() argument
143 EffectInstance(EffectT *effect, Value value,
145 : effect(effect), resource(resource), value(value) {} in effect() argument
146 EffectInstance(EffectT *effect, SymbolRefAttr symbol,
148 : effect(effect), resource(resource), value(symbol) {} in effect() function
149 EffectInstance(EffectT *effect, Attribute parameters,
151 : effect(effect), resource(resource), parameters(parameters) {} in effect() function
154 : effect(effect), resource(resource), value(value), in effect() function
158 : effect(effect), resource(resource), value(symbol), in effect() function
162 EffectT *getEffect() const { return effect; } in getEffect()
[all …]
H A DSideEffectInterfaceBase.td26 /// The resource that the associated effect is being applied to.
47 // class, as well as the name of the base effect class.
72 /// Returns true if this operation exhibits the given effect.
81 /// Returns true if this operation only has the given effect.
114 /// given value, or None if no effect exists.
152 // The base effect name of this interface.
157 // effect interfaces to define their effects.
163 /// The parent interface that the effect belongs to.
169 /// The derived effect that is being applied.
170 string effect = effectName;
[all …]
H A DSideEffectInterfaces.td48 // The following effect indicates that the operation allocates from some
49 // resource. An 'allocate' effect implies only allocation of the resource, and
55 // The following effect indicates that the operation frees some resource that
56 // has been allocated. A 'free' effect implies only de-allocation of the
62 // The following effect indicates that the operation reads from some
63 // resource. A 'read' effect implies only dereferencing of the resource, and
69 // The following effect indicates that the operation writes to some
70 // resource. A 'write' effect implies only mutating a resource, and not any
80 // Op has no side effect.
/llvm-project-15.0.7/mlir/test/IR/
H A Dtest-side-effects.mlir9 {effect="read"}, {effect="free"}
14 {effect="write", test_resource}
19 {effect="allocate", on_result, test_resource}
24 {effect="read", on_reference = @foo_ref, test_resource}
27 // No _memory_ effects, but a parametric test effect.
29 // expected-remark@+1 {{found a parametric effect with affine_map<(d0, d1) -> (d1, d0)>}}
35 // expected-remark@+1 {{found a parametric effect with affine_map<(d0, d1) -> (d1, d0)>}}
/llvm-project-15.0.7/llvm/test/Transforms/CodeGenPrepare/X86/
H A Dswitch-phi-const.ll4 @effect = global i32 0
55 store i32 13, i32* @effect, align 4
61 store i32 %x1, i32* @effect, align 4
68 store i32 %x2, i32* @effect, align 4
69 store i32 %x2.2, i32* @effect, align 4
77 store i32 %x3, i32* @effect, align 4
82 store i32 7, i32* @effect, align 4
121 store volatile i32 %x0, i32* @effect, align 4
122 store volatile i32 %n0, i32* @effect, align 4
123 store volatile i32 %x1, i32* @effect, align 4
[all …]
/llvm-project-15.0.7/clang/test/Parser/
H A Dobjc-messaging-1.m10 // expected-warning 2{{left operand of comma operator has no effect}}
12 // expected-warning 2{{left operand of comma operator has no effect}}
14 // expected-warning 4{{left operand of comma operator has no effect}}
16 // expected-warning 2{{left operand of comma operator has no effect}}
18 // expected-warning 2{{left operand of comma operator has no effect}}
20 // expected-warning 2{{left operand of comma operator has no effect}}
24 // expected-warning 2{{left operand of comma operator has no effect}}
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dswitch-phi-const.ll4 @effect = global i32 0
19 ; CHECK-NEXT: movq effect@GOTPCREL(%rip), %rax
22 ; CHECK-NEXT: movq effect@GOTPCREL(%rip), %rax
25 ; CHECK-NEXT: movq effect@GOTPCREL(%rip), %rax
28 ; CHECK-NEXT: movq effect@GOTPCREL(%rip), %rax
52 store i32 1, ptr @effect, align 4
58 store i32 5, ptr @effect, align 4
64 store i32 13, ptr @effect, align 4
70 store i32 %x3, ptr @effect, align 4
76 store i32 %x4, ptr @effect, align 4
[all …]
H A Dtail-dup-no-other-successor.ll5 declare void @effect(i32);
26 call void @effect(i32 0)
32 call void @effect(i32 1)
36 call void @effect(i32 2)
44 call void @effect(i32 4)
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dassert-side-effect.m1 // RUN: %check_clang_tidy %s bugprone-assert-side-effect %t
45 …S: :[[@LINE-1]]:3: warning: side effect in NSAssert() condition discarded in release builds [bugpr…
52 …: :[[@LINE-1]]:3: warning: side effect in NSCAssert() condition discarded in release builds [bugpr…
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DSideEffectInterfaces.cpp26 bool MemoryEffects::Effect::classof(const SideEffects::Effect *effect) { in classof() argument
27 return isa<Allocate, Free, Read, Write>(effect); in classof()
115 for (auto &effect : effects) { in hasSingleEffect() local
116 if (value && effect.getValue() != value) in hasSingleEffect()
118 hasSingleEffectOnVal = isa<EffectTy>(effect.getEffect()); in hasSingleEffect()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Transform/IR/
H A DTransformEffects.td24 // Side effect resource corresponding to the mapping between transform IR values
30 // accompanied by the Write effect as the entry is immediately initialized by
35 // accompanied by the Read effect.
42 // used alone, and is mostly accompanied by the Allocate effect.
49 // Side effect resource corresponding to the Payload IR itself.
57 // the Transform IR. Should be accompanied by the Read effect for most transform
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dassert-side-effect.rst1 .. title:: clang-tidy - bugprone-assert-side-effect
3 bugprone-assert-side-effect
6 Finds ``assert()`` with side effect.
9 condition with side effect can cause different behavior in debug / release
/llvm-project-15.0.7/llvm/test/tools/llvm-rc/Inputs/
H A Dmemoryflags-stringtable.rc6 // and end up in effect over whatever data is added here.
18 // have no effect.
24 // While the same flag on a new bundle does have effect.
/llvm-project-15.0.7/mlir/lib/Analysis/AliasAnalysis/
H A DLocalAliasAnalysis.cpp213 getAllocEffectFor(Value value, Optional<MemoryEffects::EffectInstance> &effect, in getAllocEffectFor() argument
226 if (!(effect = interface.getEffectOnValue<MemoryEffects::Allocate>(value))) in getAllocEffectFor()
233 effect->getResource())) { in getAllocEffectFor()
371 for (const MemoryEffects::EffectInstance &effect : effects) { in getModRef() local
372 if (isa<MemoryEffects::Allocate, MemoryEffects::Free>(effect.getEffect())) in getModRef()
378 if (Value effectValue = effect.getValue()) in getModRef()
386 if (isa<MemoryEffects::Read>(effect.getEffect())) { in getModRef()
389 assert(isa<MemoryEffects::Write>(effect.getEffect())); in getModRef()
/llvm-project-15.0.7/mlir/lib/Dialect/Transform/IR/
H A DTransformInterfaces.cpp181 auto consumesTarget = [&](const MemoryEffects::EffectInstance &effect) { in checkAndRecordHandleInvalidation() argument
182 return isa<MemoryEffects::Free>(effect.getEffect()) && in checkAndRecordHandleInvalidation()
183 effect.getValue() == target.get(); in checkAndRecordHandleInvalidation()
230 if (llvm::any_of(effects, [](const MemoryEffects::EffectInstance &effect) { in applyTransform() argument
232 effect.getResource()) && in applyTransform()
233 isa<MemoryEffects::Free>(effect.getEffect()); in applyTransform()
366 return llvm::any_of(effects, [](const MemoryEffects::EffectInstance &effect) { in hasEffect() argument
367 return isa<EffectTy>(effect.getEffect()) && in hasEffect()
368 isa<ResourceTy>(effect.getResource()); in hasEffect()
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dillegal-nonarc-bridged-cast.m20 …eateSomething(); // expected-warning {{'__bridge_transfer' casts have no effect when not using ARC…
21 …FCreateString(); // expected-warning {{'__bridge_transfer' casts have no effect when not using ARC…
28 …eateSomething(); // expected-warning {{'__bridge_retained' casts have no effect when not using ARC…
29 …reateNSString(); // expected-warning {{'__bridge_retained' casts have no effect when not using ARC…
H A Dblock-omitted-return-type.m23 … { //expected-warning {{'const' qualifier on omitted return type '<dependent type>' has no effect}}
29 … { //expected-warning {{'const' qualifier on omitted return type '<dependent type>' has no effect}}
34 …// expected-warning {{'const' qualifier on omitted return type '<dependent type>' has no effect}} \
39 …// expected-warning {{'const' qualifier on omitted return type '<dependent type>' has no effect}} \
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestInterfaces.cpp6 const mlir::SideEffects::Effect *effect) { in classof() argument
7 return isa<mlir::TestEffects::Concrete>(effect); in classof()
/llvm-project-15.0.7/clang/test/Modules/
H A Dconfig_macros.m13 @import config; // expected-warning{{#undef of configuration macro 'WANT_FOO' has no effect on the …
16 @import config; // expected-warning{{definition of configuration macro 'WANT_FOO' has no effect on …
23 @import config; // expected-warning{{definition of configuration macro 'WANT_BAR' has no effect on …
/llvm-project-15.0.7/llvm/test/MC/AsmParser/
H A Ddirective_fill.s50 # OBJ-ERRS: '.fill' directive with negative repeat count has no effect
54 # CHECK-WARNINGS: '.fill' directive with negative size has no effect
70 # OBJ-ERRS: '.fill' directive with negative repeat count has no effect
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Darc-unavailable-for-weakref.mm20 … // expected-error {{explicit ownership qualifier on cast result has no effect}}
36 … // expected-error {{explicit ownership qualifier on cast result has no effect}}
49 … // expected-error {{explicit ownership qualifier on cast result has no effect}}
H A Darc-objc-lifetime.mm19 …FBridgingRelease(); // expected-error {{explicit ownership qualifier on cast result has no effect}}
22 …FBridgingRelease(); // expected-error {{explicit ownership qualifier on cast result has no effect}}
26 …FBridgingRelease(); // expected-error {{explicit ownership qualifier on cast result has no effect}}
H A Dobjc-weak.mm22 … // expected-error {{explicit ownership qualifier on cast result has no effect}} \
26 … // expected-error {{explicit ownership qualifier on cast result has no effect}} \
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTokenKinds.def798 // The lexer produces these so that they only take effect when the parser
803 // The lexer produces these so that they only take effect when the parser
808 // The lexer produces these so that they only take effect when the parser
813 // The lexer produces these so that they only take effect when the parser
823 // The lexer produces these so that they only take effect when the parser
828 // The lexer produces these so that they only take effect when the parser
833 // The lexer produces these so that they only take effect when the parser
838 // The lexer produces these so that they only take effect when the parser
843 // The lexer produces these so that they only take effect when the parser
848 // The lexer produces these so that they only take effect when the parser
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/NVGPU/Transforms/
H A DOptimizeSharedMemory.cpp144 Optional<MemoryEffects::EffectInstance> effect = in getShmReadAndWriteOps() local
146 if (effect) { in getShmReadAndWriteOps()
150 effect = iface.getEffectOnValue<MemoryEffects::Write>(shmMemRef); in getShmReadAndWriteOps()
151 if (effect) in getShmReadAndWriteOps()

12345678910>>...12