| /llvm-project/flang/lib/Parser/ |
| H A D | provenance.cpp | 159 const Origin &origin{MapToOrigin(at)}; in operator []() local 160 return origin[origin.covers.MemberOffset(at)]; in operator []() 253 const Origin &origin{MapToOrigin(range->start())}; in EmitMessage() 258 if (IsValid(origin.replaces) && in EmitMessage() 259 range_.Contains(origin.replaces.start())) in EmitMessage() local 260 return origin.replaces; in EmitMessage() 267 origin.u); in EmitMessage() 280 const Origin &origin{MapToOrigin(range->start())}; in EmitMessage() 284 std::size_t offset{origin in EmitMessage() 325 const Origin &origin{MapToOrigin(at)}; GetSourceFile() local 349 const Origin &origin{MapToOrigin(start)}; GetSource() local 357 const Origin &origin{MapToOrigin(prov)}; GetSourcePosition() local 375 for (const auto &origin : origin_) { GetFirstFileProvenance() local 411 const Origin &origin{MapToOrigin(range.start())}; IntersectionWithSourceFiles() local 464 const Origin &origin{MapToOrigin(provenance)}; GetReplacedProvenance() local [all...] |
| /llvm-project/clang/test/Analysis/ |
| H A D | uninit-vals.m | 148 Point origin; field 166 testObj->origin = makePoint(0.0, 0.0); 170 // FIXME: Assigning to 'testObj->origin' kills the default binding for the 185 testObj->origin = makePoint(0.0, 0.0); 197 IntPoint origin; field 214 clang_analyzer_eval(testObj->origin.x == 0); // expected-warning{{TRUE}} 216 clang_analyzer_eval(testObj->origin.y == 0); // expected-warning{{TRUE}} 218 clang_analyzer_eval(testObj->origin.z == 0); // expected-warning{{TRUE}} 221 testObj->origin = makeIntPoint(1, 2); 231 // FIXME: Assigning to 'testObj->origin' kills the default binding for the [all …]
|
| /llvm-project/llvm/test/Instrumentation/MemorySanitizer/ |
| H A D | origin-alignment.ll | 8 ; Check origin instrumentation of stores. 9 ; Check that debug info for origin propagation code is set correctly. 16 ; 8-aligned store => 8-aligned origin store, origin address is not realigned 31 ; 4-aligned store => 4-aligned origin store, origin address is not realigned 46 ; 2-aligned store => 4-aligned origin store, origin address is realigned 61 ; 1-aligned store => 4-aligned origin store, origin addres [all...] |
| H A D | store-long-origin.ll | 7 ; Test origin for longer stores. 15 ; Single 8-byte origin store 28 ; Two 4-byte origin stores 45 ; Three 4-byte origin stores 63 ; 8-byte + 4-byte origin stores 80 ; 3 8-byte origin stores
|
| H A D | msan_kernel_basic.ll | 58 ; Storing origin here: 88 ; Storing origin here: 119 ; Storing origin here: 149 ; Storing origin here: 179 ; Storing origin here: 209 ; Load the shadow and origin. 234 ; Load the shadow and origin. 259 ; Load the shadow and origin. 283 ; Load the shadow and origin. 307 ; Load the shadow and origin [all...] |
| /llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan.cpp | 76 // | origin 1 | 84 // | origin 3 | 88 // | origin 2 | 109 // origin of the first taint byte at the low 32 bit. 177 // Return the origin of the first taint byte in the size bytes from the address 209 // from_init = true if this is the first chain of an origin tracking path. 217 // As an optimization the origin of an application byte is updated only when in ChainOrigin() 219 // taint labels, it does not matter what origin a zero label has. This reduces in ChainOrigin() 223 Printf(" DFSan found invalid origin invariant\n"); in ChainOrigin() 246 // contiguous bytes share the same origin 357 SetOrigin(const void * dst,uptr size,u32 origin) SetOrigin() argument 548 SetShadow(dfsan_label label,void * addr,uptr size,dfsan_origin origin) SetShadow() argument 578 __dfsan_set_label(dfsan_label label,dfsan_origin origin,void * addr,uptr size) __dfsan_set_label() argument 656 dfsan_set_label_origin(dfsan_label label,dfsan_origin origin,void * addr,uptr size) dfsan_set_label_origin() argument 674 ConditionalCallback(dfsan_label label,dfsan_origin origin) ConditionalCallback() argument 702 __dfsan_conditional_callback_origin(dfsan_label label,dfsan_origin origin) __dfsan_conditional_callback_origin() argument 731 ReachesFunctionCallback(dfsan_label label,dfsan_origin origin,const char * file,unsigned int line,const char * function) ReachesFunctionCallback() argument 759 __dfsan_reaches_function_callback_origin(dfsan_label label,dfsan_origin origin,const char * file,unsigned int line,const char * function) __dfsan_reaches_function_callback_origin() argument 812 PrintInvalidOriginIdWarning(dfsan_origin origin) PrintInvalidOriginIdWarning() argument 853 const dfsan_origin origin = *__dfsan::origin_for(addr); PrintOriginTraceToStr() local 921 dfsan_print_origin_id_trace(dfsan_origin origin) dfsan_print_origin_id_trace() argument 939 dfsan_sprint_origin_id_trace(dfsan_origin origin,char * out_buf,uptr out_buf_size) dfsan_sprint_origin_id_trace() argument 973 const dfsan_origin origin = *__dfsan::origin_for(addr); dfsan_get_init_origin() local [all...] |
| H A D | dfsan_flags.inc | 31 "The limit of origin chain length. Non-positive values mean unlimited.") 34 "The limit of origin node's references count. " 37 "The depth limit of origin tracking stack traces.") 39 "Whether to check if the origin invariant holds.")
|
| /llvm-project/compiler-rt/test/dfsan/ |
| H A D | atomic.cpp | 20 dfsan_origin origin; member 34 assert(dfsan_get_init_origin(&j) == ((arg_struct *)arg)->origin); in ThreadFn() 43 dfsan_origin origin = dfsan_get_origin(i); in main() local 52 args[i].origin = origin; in main()
|
| H A D | reaches_function.c | 20 void my_dfsan_reaches_function_callback(dfsan_label label, dfsan_origin origin, in my_dfsan_reaches_function_callback() argument 24 dfsan_print_origin_id_trace(origin); in my_dfsan_reaches_function_callback() 43 dfsan_origin origin,
|
| /llvm-project/clang/docs/ |
| H A D | DataFlowSanitizerDesign.rst | 68 The following functions are provided to check origin tracking status and results. 72 /// Retrieves the immediate origin associated with the given data. The returned 73 /// origin may point to another origin. 81 /// Retrieves the very first origin associated with the data at the given 85 /// Prints the origin trace of the label at the address `addr` to stderr. It also 86 /// prints description at the beginning of the trace. If origin tracking is not 90 /// Prints the origin trace of the label at the address `addr` to a pre-allocated 91 /// output buffer. If origin tracking is not on, or the address is` 94 /// `addr` is the tainted memory address whose origin we are printing. 141 An origin tracking trace is a list of chains. Each chain has a stack trace [all …]
|
| /llvm-project/lldb/unittests/Symbol/ |
| H A D | TestClangASTImporter.cpp | 62 // Check that origin was set for the imported declaration. in TEST_F() local 63 ClangASTImporter::DeclOrigin origin = importer.GetDeclOrigin(imported); in TEST_F() 64 EXPECT_TRUE(origin.Valid()); in TEST_F() 65 EXPECT_EQ(origin.ctx, &source.ast->getASTContext()); in TEST_F() 66 EXPECT_EQ(origin.decl, source.record_decl); in TEST_F() 88 // Check that origin was set for the imported declaration. in TEST_F() local 89 ClangASTImporter::DeclOrigin origin = in TEST_F() 91 EXPECT_TRUE(origin.Valid()); in TEST_F() 92 EXPECT_EQ(origin.ctx, &source.ast->getASTContext()); in TEST_F() 93 EXPECT_EQ(origin in TEST_F() [all...] |
| /llvm-project/compiler-rt/lib/msan/ |
| H A D | msan.cpp | 47 // Function argument origin. Each argument starts at the same offset as the 237 void PrintWarningWithOrigin(uptr pc, uptr bp, u32 origin) { 240 __msan_origin_tls = origin; in PrintWarningWithOrigin() 250 (__msan_get_track_origins() && Origin::isValidId(origin)) ? origin : 0; in PrintWarningWithOrigin() 253 if (__msan_get_track_origins() && !Origin::isValidId(origin)) { in PrintWarningWithOrigin() 255 " ORIGIN: invalid (%x). Might be a bug in MemorySanitizer origin " in PrintWarningWithOrigin() 257 origin); in PrintWarningWithOrigin() 315 // '----' with a uniq id and set the origin to (id | (31-th bit)). 409 void __msan_warning_with_origin(u32 origin) { 238 PrintWarningWithOrigin(uptr pc,uptr bp,u32 origin) PrintWarningWithOrigin() argument 410 __msan_warning_with_origin(u32 origin) __msan_warning_with_origin() argument 421 __msan_warning_with_origin_noreturn(u32 origin) __msan_warning_with_origin_noreturn() argument 601 __msan_set_origin(const void * a,uptr size,u32 origin) __msan_set_origin() argument [all...] |
| H A D | msan_poisoning.cpp | 49 // Copy left unaligned origin if that memory is poisoned. in CopyOrigin() 63 // Copy right unaligned origin if that memory is poisoned. in CopyOrigin() 106 // Copy right unaligned origin if that memory is poisoned. in ReverseCopyOrigin() 143 // Copy left unaligned origin if that memory is poisoned. in ReverseCopyOrigin() 156 // If destination origin range overlaps with source origin range, move in MoveOrigin() 184 // Because origin's range is slightly larger than app range, memcpy may also in CopyShadowAndOrigin() 185 // cause overlapped origin ranges. in CopyShadowAndOrigin() 221 // No need to set origin for zero shadow, but we can release pages. in SetShadow() 230 void SetOrigin(const void *dst, uptr size, u32 origin) { in SetOrigin() argument [all...] |
| /llvm-project/compiler-rt/include/sanitizer/ |
| H A D | dfsan_interface.h | 33 dfsan_label label, dfsan_origin origin); 38 dfsan_label label, dfsan_origin origin, const char *file, unsigned int line, 142 void SANITIZER_CDECL dfsan_print_origin_id_trace(dfsan_origin origin); 184 size_t SANITIZER_CDECL dfsan_sprint_origin_id_trace(dfsan_origin origin,
|
| /llvm-project/flang/lib/Optimizer/Analysis/ |
| H A D | AliasAnalysis.cpp | 52 if (auto v = llvm::dyn_cast<mlir::Value>(origin.u)) in print() 54 else if (auto gbl = llvm::dyn_cast<mlir::SymbolRefAttr>(origin.u)) in print() 58 if (origin.isData) { in print() 88 if (auto v = origin.u.dyn_cast<mlir::Value>()) { 101 bool AliasAnalysis::Source::isData() const { return origin.isData; } in alias() 104 origin.isData; in alias() 108 if (!origin.instantiationPoint) in alias() 110 return llvm::TypeSwitch<mlir::Operation *, bool>(origin.instantiationPoint) in alias() 183 // origin, but we don't have info here on which parts and whether they 185 if (lhsSrc.origin [all...] |
| /llvm-project/compiler-rt/lib/msan/tests/ |
| H A D | msan_test.cpp | 151 U4 origin = __msan_get_origin(&x); in TrackingOrigins() local 153 return __msan_origin_is_descendant_or_same(origin, 0x1234); in TrackingOrigins() 156 #define EXPECT_ORIGIN(expected, origin) \ argument 157 EXPECT_TRUE(__msan_origin_is_descendant_or_same((origin), (expected))) 166 #define EXPECT_UMR_O(action, origin) \ argument 171 if (TrackingOrigins()) EXPECT_ORIGIN(origin, __msan_get_umr_origin()); \ 181 #define EXPECT_POISONED_O(x, origin) \ argument 182 ExpectPoisonedWithOrigin(x, origin) 185 void ExpectPoisonedWithOrigin(const T& t, unsigned origin) { in ExpectPoisonedWithOrigin() argument 187 if (TrackingOrigins()) EXPECT_ORIGIN(origin, __msan_get_origi in ExpectPoisonedWithOrigin() 213 GetPoisonedO(int i,U4 origin,T val=0) GetPoisonedO() argument 3905 U4 origin = __LINE__; TEST() local 3927 U4 origin = __LINE__; TEST() local 3962 U4 origin = __LINE__; TEST() local 3976 U4 origin = __LINE__; TEST() local 3994 U4 origin = __LINE__; TEST() local 4349 U4 origin = rand(); TEST() local 4370 U4 origin = __msan_get_origin(z); BinaryOpOriginTest() local 4522 RetvalOriginTest(U4 origin) RetvalOriginTest() argument 4536 ParamOriginTest(int param,U4 origin) ParamOriginTest() argument 4543 U4 origin = __LINE__; TEST() local 4561 U4 origin = __LINE__; TEST() local 4568 U4 origin = __LINE__; TEST() local 4577 U4 origin = __LINE__; TEST() local [all...] |
| /llvm-project/flang/test/Fir/ |
| H A D | cg-ops.fir | 10 …// CHECK: %[[box:.*]] = fircg.ext_embox %[[arg]](%[[zero]]) origin %[[zero]][%[[zero]], %[[zero]],… 12 …// CHECK: fircg.ext_array_coor %[[arg]](%[[zero]]) origin %[[zero]][%[[zero]], %[[zero]], %[[zero]… 14 …// CHECK: fircg.ext_rebox %[[box]](%[[zero]]) origin %[[zero]] : (!fir.box<!fir.array<?xi32>>, ind… 29 …// CHECK: fircg.ext_embox %[[arr]](%[[zero]]) origin %[[zero]][%[[zero]], %[[zero]], %[[zero]]] : … 45 …// CHECK: %[[box:.*]] = fircg.ext_embox %[[arg]](%[[zero]]) origin %[[zero]][%[[zero]], %[[zero]],… 66 // CHECK: %{{.*}} = fircg.ext_rebox %[[arg]] origin %{{.*}}[%{{.*}}, %{{.*}}, %{{.*}}] substr %{{.*…
|
| /llvm-project/lldb/include/lldb/Expression/ |
| H A D | DiagnosticManager.h | 77 Diagnostic(DiagnosticOrigin origin, uint32_t compiler_id, 79 : m_origin(origin), m_compiler_id(compiler_id), m_detail(detail) {} 120 DiagnosticOrigin origin, in Consume() 53 Diagnostic(llvm::StringRef message,lldb::Severity severity,DiagnosticOrigin origin,uint32_t compiler_id) Diagnostic() argument
|
| /llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangASTImporter.h | 59 /// 2. Keeps track of from where declarations were imported (origin-tracking). 131 /// If \ref record has a valid origin, this function copies that 132 /// origin's layout into this ClangASTImporter instance. 141 /// \returns Returns 'false' if no valid origin was found for \ref record or 142 /// this function failed to import the layout from the origin. Otherwise, 174 bool CompleteTagDeclWithOrigin(clang::TagDecl *decl, clang::TagDecl *origin); 182 /// Updates the internal origin-tracking information so that the given 186 /// Usually the origin-tracking in the ClangASTImporter is automatically 380 void setOrigin(const clang::Decl *decl, DeclOrigin origin) { in setOrigin() argument 381 // Setting the origin o in setOrigin() 518 ClangASTImporter::DeclOrigin origin = importer.GetDeclOrigin(this->decl); GetOrigin() local [all...] |
| H A D | ClangASTImporter.cpp | 776 // our decl has an origin. in LayoutRecordType() 777 if (auto origin = GetDeclOrigin(record_decl); origin.Valid()) in LayoutRecordType() 1070 DeclOrigin origin = m_main.GetDeclOrigin(From); in ImportImpl() local 1072 // Prevent infinite recursion when the origin tracking contains a cycle. in ImportImpl() 1073 assert(origin.decl != From && "Origin points to itself?"); in ImportImpl() 1084 if (origin.Valid() && origin.ctx == &getToContext()) { in ImportImpl() 1085 RegisterImportedDecl(From, origin.decl); in ImportImpl() 1086 return origin in ImportImpl() 778 if (auto origin = GetDeclOrigin(record_decl); origin.Valid()) LayoutRecordType() local 1317 DeclOrigin origin = from_context_md->getOrigin(from); Imported() local [all...] |
| /llvm-project/clang/utils/analyzer/ |
| H A D | ProjectMap.py | 92 origin: str = "" variable in ProjectInfo 170 origin, commit = ProjectMap._get_git_params(raw_project) 172 origin, commit = "", "" 174 return ProjectInfo(name, build_mode, source, origin, commit, enabled, size)
|
| /llvm-project/lldb/test/API/lang/cpp/gmodules/alignment/ |
| H A D | main.cpp | 3 data.section.origin.row = 1; in main() 4 data.section.origin.col = 2; in main()
|
| /llvm-project/lldb/test/API/lang/cpp/gmodules/pch-chain/ |
| H A D | main.cpp | 3 data.section.origin.row = 1; in main() 4 data.section.origin.col = 2; in main()
|
| /llvm-project/flang/lib/Optimizer/Transforms/ |
| H A D | AddAliasTags.cpp | 212 if (auto declOp = source.origin.instantiationPoint) { in runOnAliasInterface() 230 std::string name = getFuncArgName(llvm::cast<mlir::Value>(source.origin.u)); in runOnAliasInterface() 243 mlir::SymbolRefAttr glbl = llvm::cast<mlir::SymbolRefAttr>(source.origin.u); in runOnAliasInterface() 253 if (auto glbl = llvm::dyn_cast<mlir::SymbolRefAttr>(source.origin.u)) { in runOnAliasInterface() 271 llvm::cast<mlir::Value>(source.origin.u).getDefiningOp(); in runOnAliasInterface()
|
| /llvm-project/lld/ELF/ |
| H A D | LinkerScript.h | 142 MemoryRegion(StringRef name, Expr origin, Expr length, uint32_t flags, in MemoryRegion() 144 : name(std::string(name)), origin(origin), length(length), flags(flags), 148 Expr origin; 164 uint64_t getOrigin() const { return origin().getValue(); } in compatibleWith() 145 Expr origin; global() member
|