Home
last modified time | relevance | path

Searched refs:ReadOnly (Results 1 – 25 of 87) sorted by relevance

1234

/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Dcontinuation-class.m7 @interface ReadOnly : Object interface
16 @interface ReadOnly () interface in readwrite
21 @implementation ReadOnly implementation
30 ReadOnly *test = [ReadOnly new];
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dproperty-category-1.m7 @interface ReadOnly : Object interface
16 @interface ReadOnly () interface in readwrite
21 @implementation ReadOnly implementation
31 ReadOnly *test = [ReadOnly new];
H A Dcontinuation-class-err.m3 @interface ReadOnly interface
13 @interface ReadOnly () interface in readwrite
15 … expected-error {{illegal redeclaration of property in class extension 'ReadOnly' (attribute must …
/llvm-project-15.0.7/llvm/unittests/IR/
H A DAttributesTest.cpp83 B_align_readonly.addAttribute(Attribute::ReadOnly); in TEST()
94 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
97 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
101 EXPECT_TRUE(AS.hasAttribute(Attribute::ReadOnly)); in TEST()
112 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
117 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
124 EXPECT_TRUE(AL.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
134 EXPECT_TRUE(AL2.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
141 EXPECT_TRUE(AL2.hasParamAttr(0, Attribute::ReadOnly)); in TEST()
173 … { AttributeList::FunctionIndex, Attribute::get(C, Attribute::ReadOnly) } }; in TEST()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/
H A Dpass-by-value.rst48 - Foo(const std::string &Copied, const std::string &ReadOnly)
49 - : Copied(Copied), ReadOnly(ReadOnly)
50 + Foo(std::string Copied, const std::string &ReadOnly)
51 + : Copied(std::move(Copied)), ReadOnly(ReadOnly)
56 const std::string &ReadOnly;
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DSectionKind.h40 ReadOnly, enumerator
132 return K == ReadOnly || isMergeableCString() || in isReadOnly()
192 static SectionKind getReadOnly() { return get(ReadOnly); } in getReadOnly()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h168 enum Flags { HaveGV = 1, ReadOnly = 2, WriteOnly = 4 }; enumerator
198 return RefAndFlags.getInt() & ReadOnly; in isReadOnly()
206 return RefAndFlags.getInt() & (ReadOnly | WriteOnly); in getAccessSpecifier()
209 unsigned BadAccessMask = ReadOnly | WriteOnly; in isValidAccessSpecifier()
216 RefAndFlags.setInt(RefAndFlags.getInt() | ReadOnly); in setReadOnly()
566 unsigned ReadOnly : 1;
592 this->ReadOnly &= RHS.ReadOnly;
605 return this->ReadNone | this->ReadOnly | this->NoRecurse |
616 OS << ", readOnly: " << this->ReadOnly;
901 GVarFlags(bool ReadOnly, bool WriteOnly, bool Constant,
[all …]
H A DIntrinsicsWebAssembly.td126 [IntrInaccessibleMemOrArgMemOnly, ReadOnly<ArgIndex<0>>,
132 [IntrInaccessibleMemOrArgMemOnly, ReadOnly<ArgIndex<0>>,
H A DIntrinsics.td103 // ReadOnly - The specified argument pointer is not written to through the
105 class ReadOnly<AttrIndex idx> : IntrinsicProperty {
564 ReadOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>,
638 WriteOnly<ArgIndex<0>>, ReadOnly<ArgIndex<1>>,
1302 ReadOnly<ArgIndex<1>>,
1328 [IntrArgMemOnly, ReadOnly<ArgIndex<0>>,
1338 ReadOnly<ArgIndex<0>>,
1791 ReadOnly<ArgIndex<0>>]>;
1796 ReadOnly<ArgIndex<1>>]>;
1808 WriteOnly<ArgIndex<0>>, ReadOnly<ArgIndex<1>>,
[all …]
/llvm-project-15.0.7/polly/lib/Support/
H A DVirtualInstruction.cpp91 return VirtualUse(UserStmt, Val, ReadOnly, nullptr, InputMA); in create()
95 return VirtualUse(UserStmt, Val, ReadOnly, nullptr, InputMA); in create()
121 case VirtualUse::ReadOnly: in print()
298 case VirtualUse::ReadOnly: in walkReachable()
/llvm-project-15.0.7/llvm/test/DebugInfo/
H A Ddwarfdump-accel.test11 CHECK: DW_AT_name{{.*}}"-[TestInterface ReadOnly]"
36 CHECK: String:{{.*}}"-[TestInterface ReadOnly]"
H A Ddwarfdump-objc.test7 CHECK: DW_AT_APPLE_property_name {{.*}} "ReadOnly"
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dbool.cpp8 ReadOnly = true enumerator
/llvm-project-15.0.7/llvm/test/DebugInfo/Inputs/
H A Ddwarfdump-objc.m7 @property (readonly) int ReadOnly; property
/llvm-project-15.0.7/polly/include/polly/Support/
H A DVirtualInstruction.h55 ReadOnly, enumerator
133 bool isReadOnly() const { return Kind == ReadOnly; } in isReadOnly()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp58 if (F.hasFnAttribute(Attribute::AttrKind::ReadOnly)) { in getFunctionControl()
140 AQ = SPIRV::AccessQualifier::ReadOnly; in lowerFormalArguments()
161 if (Arg.hasAttribute(Attribute::ReadOnly)) { in lowerFormalArguments()
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dhsa-metadata-deduce-ro-arg.ll12 ; CHECK-NEXT: AccQual: ReadOnly
/llvm-project-15.0.7/llvm/unittests/Support/
H A DPath.cpp2148 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2151 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2157 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2163 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2169 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2175 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2181 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2187 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2193 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
2196 EXPECT_TRUE(CheckPermissions(ReadOnly)); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCChecker.cpp41 ReadOnly.insert(Hexagon::PC); in init()
42 ReadOnly.insert(Hexagon::C9_8); in init()
542 if (ReadOnly.find(Register) != ReadOnly.end()) { in checkRegistersReadOnly()
H A DHexagonMCChecker.h73 std::set<unsigned> ReadOnly; variable
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp326 AttrsToRemove.addAttribute(Attribute::ReadOnly); in addMemoryAttrs()
342 F->addFnAttr(ReadsMemory ? Attribute::ReadOnly : Attribute::ReadNone); in addMemoryAttrs()
791 return Attribute::ReadOnly; in determinePointerAccessAttrs()
889 assert((R == Attribute::ReadOnly || R == Attribute::ReadNone || in addAccessAttr()
901 A->removeAttr(Attribute::ReadOnly); in addAccessAttr()
904 if (R == Attribute::ReadOnly) in addAccessAttr()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DCodeGenIntrinsics.h158 ReadOnly, enumerator
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGStmt.cpp2260 bool HasUnwindClobber, bool ReadOnly, in UpdateAsmCallInst() argument
2275 else if (ReadOnly) in UpdateAsmCallInst()
2276 Result.addFnAttr(llvm::Attribute::ReadOnly); in UpdateAsmCallInst()
2381 bool ReadOnly = true, ReadNone = true; in EmitAsmStmt() local
2487 ReadOnly = ReadNone = false; in EmitAsmStmt()
2640 ReadOnly = ReadNone = false; in EmitAsmStmt()
2718 ReadOnly, ReadNone, InNoMergeAttributedStmt, S, in EmitAsmStmt()
2722 UpdateAsmCallInst(*Result, HasSideEffect, true, ReadOnly, ReadNone, in EmitAsmStmt()
2729 ReadOnly, ReadNone, InNoMergeAttributedStmt, S, in EmitAsmStmt()
/llvm-project-15.0.7/llvm/test/ThinLTO/X86/
H A Dindex-const-prop-cache.ll1 ; Check that we correctly handle 'ReadOnly' attribute when computing cache key
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUAliasAnalysis.cpp172 F->hasParamAttribute(ArgNo, Attribute::ReadOnly))) { in pointsToConstantMemory()

1234