Home
last modified time | relevance | path

Searched refs:DIB (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Ddebuginfo.c34 LLVMDIBuilderRef DIB = LLVMCreateDIBuilder(M); in llvm_test_dibuilder() local
44 LLVMDIBuilderCreateModule(DIB, CompileUnit, in llvm_test_dibuilder()
51 LLVMDIBuilderCreateModule(DIB, CompileUnit, in llvm_test_dibuilder()
57 DIB, Module, OtherModule, File, 42, NULL, 0); in llvm_test_dibuilder()
63 LLVMDIBuilderCreateConstantValueExpression(DIB, 0); in llvm_test_dibuilder()
105 LLVMDIBuilderGetOrCreateSubrange(DIB, 0, 10), in llvm_test_dibuilder()
108 LLVMDIBuilderCreateVectorType(DIB, 64 * 10, 0, in llvm_test_dibuilder()
133 LLVMDIBuilderCreateExpression(DIB, NULL, 0); in llvm_test_dibuilder()
167 LLVMDIBuilderCreateConstantValueExpression(DIB, 0); in llvm_test_dibuilder()
193 LLVMDIBuilderFinalize(DIB); in llvm_test_dibuilder()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DDebugInfoTest.cpp196 DIBuilder DIB(*M); in TEST() local
209 return DIB.createExpression(ops); in TEST()
212 DIFile *F = DIB.createFile("main.c", "/"); in TEST()
213 DICompileUnit *CU = DIB.createCompileUnit( in TEST()
239 DIBuilder DIB(*M); in TEST() local
244 DIFile *F = DIB.createFile("main.c", "/"); in TEST()
253 DIBuilder DIB(*M); in TEST() local
267 return DIB.createExpression(ops); in TEST()
292 DIBuilder DIB(*M); in TEST() local
347 DIBuilder DIB(*M, true, CU); in TEST() local
[all …]
H A DIRBuilderTest.cpp798 DIBuilder DIB(*M); in TEST_F() local
814 DIB.finalize(); in TEST_F()
819 DIBuilder DIB(*M); in TEST_F() local
835 DIB.finalize(); in TEST_F()
841 DIBuilder DIB(*M); in TEST_F() local
858 DIB.finalize(); in TEST_F()
934 DIB.finalize(); in TEST_F()
953 DIB.finalize(); in TEST_F()
1023 DIB.finalize(); in TEST_F()
1041 DIB.finalize(); in TEST_F()
[all …]
H A DVerifierTest.cpp202 DIBuilder DIB(M); in TEST() local
203 DIB.createCompileUnit(dwarf::DW_LANG_C89, DIB.createFile("broken.c", "/"), in TEST()
205 DIB.finalize(); in TEST()
209 auto *File = DIB.createFile("not-a-CU.f", "."); in TEST()
217 DIBuilder DIB(M); in TEST() local
218 auto *CU = DIB.createCompileUnit(dwarf::DW_LANG_C89, in TEST()
219 DIB.createFile("broken.c", "/"), in TEST()
228 F->setSubprogram(DIB.createFunction( in TEST()
229 CU, "f", "f", DIB.createFile("broken.c", "/"), 1, nullptr, 1, in TEST()
232 DIB.finalize(); in TEST()
H A DMetadataTest.cpp1491 DIBuilder DIB(M); in TEST_F() local
1493 auto *N = DIB.getOrCreateGenericSubrange( in TEST_F()
1513 N, DIB.getOrCreateGenericSubrange(DIGenericSubrange::BoundType(nullptr), in TEST_F()
1519 N, DIB.getOrCreateGenericSubrange(DIGenericSubrange::BoundType(nullptr), in TEST_F()
1524 N, DIB.getOrCreateGenericSubrange(DIGenericSubrange::BoundType(nullptr), in TEST_F()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DLexicalScopesTest.cpp101 DIBuilder DIB(Mod); in LexicalScopesTest() local
102 OurFile = DIB.createFile("xyzzy.c", "/cave"); in LexicalScopesTest()
104 DIB.createCompileUnit(dwarf::DW_LANG_C99, OurFile, "nou", false, "", 0); in LexicalScopesTest()
105 auto OurSubT = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None)); in LexicalScopesTest()
107 DIB.createFunction(OurCU, "bees", "", OurFile, 1, OurSubT, 1, in LexicalScopesTest()
110 OurBlock = DIB.createLexicalBlock(OurFunc, OurFile, 2, 3); in LexicalScopesTest()
111 AnotherBlock = DIB.createLexicalBlock(OurFunc, OurFile, 2, 6); in LexicalScopesTest()
113 DIB.createFunction(OurFile, "shoes", "", OurFile, 10, OurSubT, 10, in LexicalScopesTest()
124 DIB.finalize(); in LexicalScopesTest()
H A DInstrRefLDVTest.cpp99 DIBuilder DIB(*Mod); in SetUp() local
100 OurFile = DIB.createFile("xyzzy.c", "/cave"); in SetUp()
102 DIB.createCompileUnit(dwarf::DW_LANG_C99, OurFile, "nou", false, "", 0); in SetUp()
103 auto OurSubT = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None)); in SetUp()
105 DIB.createFunction(OurCU, "bees", "", OurFile, 1, OurSubT, 1, in SetUp()
108 OurBlock = DIB.createLexicalBlock(OurFunc, OurFile, 2, 3); in SetUp()
109 AnotherBlock = DIB.createLexicalBlock(OurFunc, OurFile, 2, 6); in SetUp()
111 DIB.createFunction(OurFile, "shoes", "", OurFile, 10, OurSubT, 10, in SetUp()
122 LongInt = DIB.createBasicType("long", 64, llvm::dwarf::DW_ATE_unsigned); in SetUp()
123 FuncVariable = DIB.createAutoVariable(OurFunc, "lala", OurFile, 1, LongInt); in SetUp()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DDebugify.cpp82 std::function<bool(DIBuilder &DIB, Function &F)> ApplyToMF) { in applyDebugifyMetadata() argument
89 DIBuilder DIB(M); in applyDebugifyMetadata() local
100 DTy = DIB.createBasicType(Name, Size, dwarf::DW_ATE_unsigned); in applyDebugifyMetadata()
107 auto File = DIB.createFile(M.getName(), "/"); in applyDebugifyMetadata()
108 auto CU = DIB.createCompileUnit(dwarf::DW_LANG_C, File, "debugify", in applyDebugifyMetadata()
117 auto SPType = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None)); in applyDebugifyMetadata()
135 auto LocalVar = DIB.createAutoVariable(SP, Name, File, Loc->getLine(), in applyDebugifyMetadata()
138 DIB.insertDbgValueIntrinsic(V, LocalVar, DIB.createExpression(), Loc, in applyDebugifyMetadata()
190 ApplyToMF(DIB, F); in applyDebugifyMetadata()
191 DIB.finalizeSubprogram(SP); in applyDebugifyMetadata()
[all …]
H A DPromoteMemoryToRegister.cpp227 DIBuilder DIB; member
268 DIB(*DT.getRoot()->getParent()->getParent(), /*AllowUnresolved*/ false), in PromoteMem2Reg()
424 DIBuilder DIB(*AI->getModule(), /*AllowUnresolved*/ false); in rewriteSingleStoreAlloca() local
425 ConvertDebugDeclareToDebugValue(DII, Info.OnlyStore, DIB); in rewriteSingleStoreAlloca()
528 DIBuilder DIB(*AI->getModule(), /*AllowUnresolved*/ false); in promoteSingleBlockAlloca() local
529 ConvertDebugDeclareToDebugValue(DII, SI, DIB); in promoteSingleBlockAlloca()
928 ConvertDebugDeclareToDebugValue(DII, APN, DIB); in RenamePass()
989 ConvertDebugDeclareToDebugValue(DII, SI, DIB); in RenamePass()
H A DCodeExtractor.cpp1539 DIBuilder DIB(*OldFunc.getParent(), /*AllowUnresolved=*/false, in fixupDebugInfoPostExtraction() local
1541 auto SPType = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None)); in fixupDebugInfoPostExtraction()
1545 auto NewSP = DIB.createFunction( in fixupDebugInfoPostExtraction()
1595 NewVar = DIB.createAutoVariable( in fixupDebugInfoPostExtraction()
1603 DIB.finalizeSubprogram(NewSP); in fixupDebugInfoPostExtraction()
H A DLocal.cpp1554 DIBuilder DIB(*F.getParent(), /*AllowUnresolved*/ false); in LowerDbgDeclare() local
1594 ConvertDebugDeclareToDebugValue(DDI, SI, DIB); in LowerDbgDeclare()
1596 ConvertDebugDeclareToDebugValue(DDI, LI, DIB); in LowerDbgDeclare()
1605 DIB.insertDbgValueIntrinsic(AI, DDI->getVariable(), DerefExpr, in LowerDbgDeclare()
H A DLoopUtils.cpp636 DIBuilder DIB(*ExitBlock->getModule()); in deleteDeadLoop() local
642 DIB.insertDbgValueIntrinsic(UndefValue::get(Builder.getInt32Ty()), in deleteDeadLoop()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineDebugify.cpp34 DIBuilder &DIB, Function &F) { in applyDebugifyMetadataToMachineFunction() argument
173 "ModuleDebugify: ", [&](DIBuilder &DIB, Function &F) -> bool { in runOnModule() argument
174 return applyDebugifyMetadataToMachineFunction(MMI, DIB, F); in runOnModule()
H A DSafeStack.cpp494 DIBuilder DIB(*F.getParent()); in moveStaticAllocasToUnsafeStack() local
588 replaceDbgDeclare(Arg, BasePointer, DIB, DIExpression::ApplyOffset, in moveStaticAllocasToUnsafeStack()
600 replaceDbgDeclare(AI, BasePointer, DIB, DIExpression::ApplyOffset, -Offset); in moveStaticAllocasToUnsafeStack()
601 replaceDbgValueForAlloca(AI, BasePointer, DIB, -Offset); in moveStaticAllocasToUnsafeStack()
657 DIBuilder DIB(*F.getParent()); in moveDynamicAllocasToUnsafeStack() local
693 replaceDbgDeclare(AI, NewAI, DIB, DIExpression::ApplyOffset, 0); in moveDynamicAllocasToUnsafeStack()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DLocalTest.cpp158 DIBuilder DIB(*M); in TEST() local
159 replaceDbgDeclare(AI, NewBase, DIB, DIExpression::ApplyOffset, 0); in TEST()
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp171 DIBuilder DIB(*M); in SetUp() local
172 auto File = DIB.createFile("test.dbg", "/src", llvm::None, in SetUp()
175 DIB.createCompileUnit(dwarf::DW_LANG_C, File, "llvm-C", true, "", 0); in SetUp()
176 auto Type = DIB.createSubroutineType(DIB.getOrCreateTypeArray(None)); in SetUp()
177 auto SP = DIB.createFunction( in SetUp()
181 auto Scope = DIB.createLexicalBlockFile(SP, File, 0); in SetUp()
182 DIB.finalize(); in SetUp()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DAddressSanitizer.cpp873 DIBuilder DIB; member
910 : F(F), ASan(ASan), DIB(*F.getParent(), /*AllowUnresolved*/ false), in FunctionStackPoisoner()
3234 replaceDbgDeclare(AI, LocalStackBaseAllocaPtr, DIB, DIExprFlags, in processStaticAllocas()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2853 std::unique_ptr<DIBuilder> DIB; in visitAllocSite() local
2856 DIB.reset(new DIBuilder(*MI.getModule(), /*AllowUnresolved=*/false)); in visitAllocSite()
2891 ConvertDebugDeclareToDebugValue(DVI, SI, *DIB); in visitAllocSite()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDebugInfo.cpp2767 llvm::DIBuilder DIB(CGM.getModule()); in getOrCreateModuleRef() local
2772 DIB.createCompileUnit( in getOrCreateModuleRef()
2775 DIB.createFile(Mod.getModuleName(), TheCU->getDirectory()), in getOrCreateModuleRef()
2778 DIB.finalize(); in getOrCreateModuleRef()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSROA.cpp4502 DIBuilder DIB(*AI.getModule(), /*AllowUnresolved*/ false); in splitAlloca() local
4563 DIB.insertDeclare(Fragment.Alloca, DbgDeclare->getVariable(), FragmentExpr, in splitAlloca()