Home
last modified time | relevance | path

Searched refs:BD (Results 1 – 25 of 106) sorted by relevance

12345

/llvm-project-15.0.7/llvm/tools/bugpoint/
H A DCrashDebugger.cpp75 BugDriver &BD; member in llvm::ReducePassList
96 if (BD.runPasses(BD.getProgram(), Prefix, PrefixOutput)) in doTest()
101 BD.Program = parseInputFile(PrefixOutput, BD.getContext()); in doTest()
113 if (BD.runPasses(BD.getProgram(), Suffix)) in doTest()
129 BugDriver &BD; member in __anon627d05070211::ReduceCrashingGlobalInitializers
196 BugDriver &BD; member in __anon627d05070311::ReduceCrashingFunctions
327 BugDriver &BD; member in __anon627d05070411::ReduceCrashingFunctionAttributes
431 BugDriver &BD; member in __anon627d05070511::ReduceCrashingBlocks
436 : BD(BD), TestFn(testFn) {} in ReduceCrashingBlocks()
549 BugDriver &BD; member in __anon627d05070611::ReduceCrashingConditionals
[all …]
H A DMiscompilation.cpp47 BugDriver &BD; member in __anone2f049990111::ReduceMiscompilingPasses
74 BD.EmitProgressBitcode(BD.getProgram(), "pass-error", false); in doTest()
82 Expected<bool> Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", in doTest()
116 BD.EmitProgressBitcode(BD.getProgram(), "pass-error", false); in doTest()
124 Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", false); in doTest()
161 BD.EmitProgressBitcode(BD.getProgram(), "pass-error", false); in doTest()
169 Diff = BD.diffProgram(BD.getProgram(), BitcodeResult, "", in doTest()
187 BugDriver &BD; member in __anone2f049990211::ReduceMiscompilingFunctions
447 BugDriver &BD; member in __anone2f049990311::ReduceMiscompiledBlocks
616 BugDriver &BD, in DebugAMiscompilation() argument
[all …]
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinaryData.h75 BD = BD->Parent; in getRootData()
76 return BD; in getRootData()
152 BD = BD->Parent; in getRootData()
153 return BD; in getRootData()
158 while (!BD->isAtomic() && BD->Parent) in getAtomicRoot()
159 BD = BD->Parent; in getAtomicRoot()
160 return BD; in getAtomicRoot()
165 while (!BD->isAtomic() && BD->Parent) in getAtomicRoot()
166 BD = BD->Parent; in getAtomicRoot()
167 return BD; in getAtomicRoot()
[all …]
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinarySection.cpp34 BinarySection::hash(const BinaryData &BD, in hash() argument
36 auto Itr = Cache.find(&BD); in hash()
40 Cache[&BD] = 0; in hash()
49 hash_combine(hash_value(BD.getSize()), hash_value(BD.getSectionName())); in hash()
63 Cache[&BD] = Hash; in hash()
207 BD = BD->getAtomicRoot(); in reorderRelocations()
208 assert(BD); in reorderRelocations()
210 if ((!BD->isMoved() && !Inplace) || BD->isJumpTable()) in reorderRelocations()
236 for (BinaryData *BD : Order) { in reorderContents()
237 assert((BD->isMoved() || !Inplace) && !BD->isJumpTable()); in reorderContents()
[all …]
H A DBinaryContext.cpp308 if (!BD) { in validateHoles()
435 return std::make_pair(BD->getSymbol(), Address - BD->getAddress()); in handleAddressRef()
996 BinaryData *BD; in registerNameAtAddress() local
1028 while (BD) { in getBinaryDataContainingAddressImpl()
1030 return BD; in getBinaryDataContainingAddressImpl()
1031 BD = BD->getParent(); in getBinaryDataContainingAddressImpl()
1082 std::swap(BD.getSymbols()[0], BD.getSymbols()[Idx]); in generateSymbolHashes()
1092 const uint64_t Hash = BD.getSection().hash(BD); in generateSymbolHashes()
1308 !BD->getParent() && !BD->getSize() && !BD->isAbsolute() && in postProcessSymbolTable()
1388 bool isHole = (!BD->getParent() && !BD->getSize() && BD->isObject() && in fixBinaryDataHoles()
[all …]
/llvm-project-15.0.7/bolt/lib/Passes/
H A DReorderData.cpp105 if (!BD->isAtomic() || BD->isJumpTable() || !BD->isMoveable()) in filterSymbol()
113 if (BD->hasName(Name)) { in filterSymbol()
125 if (BD->hasName(Name)) { in filterSymbol()
153 outs() << "BOLT-INFO: " << *BD << ", moveable=" << BD->isMoveable() in printOrder()
156 TotalSize += BD->getSize(); in printOrder()
167 BinaryData *BD = Entry.second; in baseOrder() local
172 Order.emplace_back(BD, BDCount); in baseOrder()
353 BinaryData *BD = Begin->first; in setSectionOrder() local
356 if (!filterSymbol(BD)) in setSectionOrder()
394 Offset += BD->getSize(); in setSectionOrder()
[all …]
H A DAsmDump.cpp113 void dumpBinaryDataSymbols(raw_ostream &OS, const BinaryData *BD, in dumpBinaryDataSymbols() argument
115 if (BD->isJumpTable()) in dumpBinaryDataSymbols()
117 if (&BD->getSection() != LastBS) { in dumpBinaryDataSymbols()
118 OS << ".section " << BD->getSectionName() << '\n'; in dumpBinaryDataSymbols()
119 LastBS = &BD->getSection(); in dumpBinaryDataSymbols()
121 OS << "\"" << BD->getName() << "\": "; in dumpBinaryDataSymbols()
222 else if (const BinaryData *BD = in dumpFunction() local
224 BDReferences.insert(BD); in dumpFunction()
270 for (const BinaryData *BD : BDReferences) in dumpFunction() local
271 dumpBinaryDataSymbols(OS, BD, LastSection); in dumpFunction()
H A DReorderFunctions.cpp339 BinaryData *BD = BC.getBinaryDataByName(Function); in runOnFunctions() local
340 if (!BD) { in runOnFunctions()
346 BD = BC.getBinaryDataByName(FuncName); in runOnFunctions()
347 if (BD) in runOnFunctions()
348 FuncAddrs.push_back(BD->getAddress()); in runOnFunctions()
354 FuncAddrs.push_back(BD->getAddress()); in runOnFunctions()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DExtensibleRTTITest.cpp67 MyBaseType &BD = D; in TEST() local
70 (void)cast<MyBaseType>(BD); in TEST()
71 (void)cast<MyDerivedType>(BD); in TEST()
77 MyBaseType &BD = D; in TEST() local
81 EXPECT_EQ(dyn_cast<MyBaseType>(&BD), &BD); in TEST()
82 EXPECT_EQ(dyn_cast<MyDerivedType>(&BD), &D); in TEST()
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A D2011-04-26-SchedTweak.ll8 …BD = type { %struct.BD*, i32, i32, i32, i32, i64, i32 (%struct.BD*, i8*, i64, i32)*, i32 (%struct.…
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNonCopyableObjects.cpp56 const auto *BD = Result.Nodes.getNodeAs<NamedDecl>("type_decl"); in check() local
59 if (D && BD) in check()
62 << D << BD->getName(); in check()
67 << BD; in check()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DAnalysisDeclContext.h174 getReferencedBlockVars(const BlockDecl *BD);
188 const BlockDecl *BD, const void *Data);
356 const BlockDecl *BD; variable
362 const LocationContext *ParentLC, const BlockDecl *BD, in BlockInvocationContext() argument
364 : LocationContext(Block, ADC, ParentLC, ID), BD(BD), Data(Data) {} in BlockInvocationContext()
369 const BlockDecl *getBlockDecl() const { return BD; } in getBlockDecl()
376 const LocationContext *ParentLC, const BlockDecl *BD, in Profile() argument
378 ProfileCommon(ID, Block, ADC, ParentLC, BD); in Profile()
419 const BlockDecl *BD, const void *Data);
/llvm-project-15.0.7/llvm/test/CodeGen/Thumb2/
H A Dv8_IT_3.ll7 …BD = type { %struct.BD*, i32, i32, i32, i32, i64, i32 (%struct.BD*, i8*, i64, i32)*, i32 (%struct.…
/llvm-project-15.0.7/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp118 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) in getBody() local
119 return BD->getBody(); in getBody()
151 if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getSelfDecl() local
153 for (const auto &I : BD->captures()) { in getSelfDecl()
421 Profile(ID, getAnalysisDeclContext(), getParent(), BD, Data); in Profile()
445 const BlockDecl *BD, const void *Data) { in getBlockInvocationContext() argument
447 BlockInvocationContext::Profile(ID, ADC, ParentLC, BD, Data); in getBlockInvocationContext()
640 static DeclVec* LazyInitializeReferencedDecls(const BlockDecl *BD, in LazyInitializeReferencedDecls() argument
651 for (const auto &CI : BD->captures()) { in LazyInitializeReferencedDecls()
657 F.Visit(BD->getBody()); in LazyInitializeReferencedDecls()
[all …]
H A DLiveVariables.cpp73 for (const BindingDecl *BD : DD->bindings()) in isLive() local
74 alive |= liveBindings.contains(BD); in isLive()
349 if (const BindingDecl* BD = dyn_cast<BindingDecl>(D)) { in VisitBinaryOperator() local
350 Killed = !BD->getType()->isReferenceType(); in VisitBinaryOperator()
352 if (const auto *HV = BD->getHoldingVar()) in VisitBinaryOperator()
382 if (const auto *BD = dyn_cast<BindingDecl>(D)) { in VisitDeclRefExpr() local
384 if (const auto *HV = BD->getHoldingVar()) in VisitDeclRefExpr()
387 val.liveBindings = LV.BSetFact.add(val.liveBindings, BD); in VisitDeclRefExpr()
398 for (const auto *BD : DD->bindings()) { in VisitDeclStmt() local
399 if (const auto *HV = BD->getHoldingVar()) in VisitDeclStmt()
[all …]
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.cpp240 auto GetBaseDesc = [this](const RecordDecl *BD, Record *BR) -> Descriptor * { in getOrCreateRecord() argument
243 return allocateDescriptor(BD, BR, /*isConst=*/false, in getOrCreateRecord()
256 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord() local
257 Record *BR = getOrCreateRecord(BD); in getOrCreateRecord()
258 if (Descriptor *Desc = GetBaseDesc(BD, BR)) { in getOrCreateRecord()
260 Bases.push_back({BD, Size, Desc, BR}); in getOrCreateRecord()
268 const RecordDecl *BD = Spec.getType()->castAs<RecordType>()->getDecl(); in getOrCreateRecord() local
269 Record *BR = getOrCreateRecord(BD); in getOrCreateRecord()
271 if (Descriptor *Desc = GetBaseDesc(BD, BR)) { in getOrCreateRecord()
273 VirtBases.push_back({BD, VirtSize, Desc, BR}); in getOrCreateRecord()
H A DEvalEmitter.cpp156 const Record::Base *BD = Record->getBase(I); in emitRetValue() local
157 QualType BaseTy = Ctx.getASTContext().getRecordType(BD->Decl); in emitRetValue()
158 const Pointer &BP = Ptr.atField(BD->Offset); in emitRetValue()
/llvm-project-15.0.7/clang/lib/AST/
H A DMangle.cpp38 const BlockDecl *BD, in mangleFunctionBlock() argument
40 unsigned discriminator = Context.getBlockId(BD, true); in mangleFunctionBlock()
254 void MangleContext::mangleGlobalBlock(const BlockDecl *BD, in mangleGlobalBlock() argument
257 unsigned discriminator = getBlockId(BD, false); in mangleGlobalBlock()
272 CXXCtorType CT, const BlockDecl *BD, in mangleCtorBlock() argument
277 mangleFunctionBlock(*this, Buffer, BD, ResStream); in mangleCtorBlock()
281 CXXDtorType DT, const BlockDecl *BD, in mangleDtorBlock() argument
286 mangleFunctionBlock(*this, Buffer, BD, ResStream); in mangleDtorBlock()
306 mangleCtorBlock(CD, /*CT*/ Ctor_Complete, BD, Out); in mangleBlock()
308 mangleDtorBlock(DD, /*DT*/ Dtor_Complete, BD, Out); in mangleBlock()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DMangle.h82 unsigned getBlockId(const BlockDecl *BD, bool Local) { in getBlockId() argument
86 Result = BlockIds.insert(std::make_pair(BD, BlockIds.size())); in getBlockId()
137 void mangleGlobalBlock(const BlockDecl *BD,
141 const BlockDecl *BD, raw_ostream &Out);
143 const BlockDecl *BD, raw_ostream &Out);
144 void mangleBlock(const DeclContext *DC, const BlockDecl *BD,
/llvm-project-15.0.7/clang/docs/
H A DClangPlugins.rst140 $ export BD=/path/to/build/directory
141 $ make -C $BD CallSuperAttr
142 $ clang++ -fplugin=$BD/lib/CallSuperAttr.so \
175 $ export BD=/path/to/build/directory
176 $ (cd $BD && make PrintFunctionNames )
179 -I$BD/tools/clang/include -Itools/clang/include -I$BD/include -Iinclude \
181 -Xclang -load -Xclang $BD/lib/PrintFunctionNames.so -Xclang \
H A DLibTooling.rst154 $ export BD=/path/to/build/llvm
155 $ $BD/bin/clang-check tools/clang/tools/clang-check/ClangCheck.cpp -- \
157 -Itools/clang/include -I$BD/include -Iinclude \
177 $ export BD=/path/to/build/llvm
178 $ $BD/bin/clang-check -p $BD tools/clang/tools/clang-check/ClangCheck.cpp
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp196 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getDecl() local
197 assert(Index < BD->param_size()); in getDecl()
198 return BD->parameters()[Index]; in getDecl()
361 ID.AddPointer(BD); in ProfileRegion()
365 BlockCodeRegion::ProfileRegion(ID, BD, locTy, AC, superRegion); in Profile()
965 } else if (const auto *BD = dyn_cast<BlockDecl>(D)) { in getVarRegion() local
966 if (Index < BD->param_size() && BD->parameters()[Index] == PVD) in getVarRegion()
1020 else if (const auto *BD = dyn_cast<BlockDecl>(STCD)) { in getVarRegion() local
1037 getBlockCodeRegion(BD, Ctx.getCanonicalType(T), in getVarRegion()
1073 const BlockDecl *BD = BC->getDecl(); in getBlockDataRegion() local
[all …]
/llvm-project-15.0.7/clang/test/FixIt/
H A Dfixit.cpp171 class BD: public AD {}; class
173 void test (BD &br) { in test()
175 BD b; in test()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCallAndMessageChecker.cpp131 const ParmVarDecl *ParamDecl, const char *BD,
189 std::unique_ptr<BugType> &BT, const ParmVarDecl *ParamDecl, const char *BD, in uninitRefOrPointer() argument
224 LazyInit_BT(BD, BT); in uninitRefOrPointer()
289 const char *BD = "Uninitialized argument value"; in PreVisitProcessArg() local
291 if (uninitRefOrPointer(C, V, ArgRange, ArgEx, BT, ParamDecl, BD, in PreVisitProcessArg()
301 LazyInit_BT(BD, BT); in PreVisitProcessArg()
331 LazyInit_BT(BD, BT); in PreVisitProcessArg()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp1888 SymbolAddress = BD ? BD->getAddress() : 0; in analyzeRelocation()
2242 Symbol = BD ? BD->getSymbol() in readDynamicRelocations()
2409 ReferencedSymbol = BD->getSymbol(); in readRelocations()
2585 BD->nameStartsWith(SymbolName) || in readRelocations()
2596 ReferencedSymbol = BD->getSymbol(); in readRelocations()
2598 SymbolAddress = BD->getAddress(); in readRelocations()
4656 if (BD && BD->isMoved() && !BD->isJumpTable()) { in updateELFSymbolTable()
5221 if (BD && BD->isMoved()) in getNewFunctionOrDataAddress()
5222 return BD->getOutputAddress(); in getNewFunctionOrDataAddress()
5494 if (!BD) in getNewValueForSymbol()
[all …]

12345