comparison llvm/lib/IR/LLVMContextImpl.cpp @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children f935e5e0dbe7 2e18cbf3894f
comparison
equal deleted inserted replaced
172:9fbae9c8bf63 173:0572611fdcc8
24 LLVMContextImpl::LLVMContextImpl(LLVMContext &C) 24 LLVMContextImpl::LLVMContextImpl(LLVMContext &C)
25 : DiagHandler(std::make_unique<DiagnosticHandler>()), 25 : DiagHandler(std::make_unique<DiagnosticHandler>()),
26 VoidTy(C, Type::VoidTyID), 26 VoidTy(C, Type::VoidTyID),
27 LabelTy(C, Type::LabelTyID), 27 LabelTy(C, Type::LabelTyID),
28 HalfTy(C, Type::HalfTyID), 28 HalfTy(C, Type::HalfTyID),
29 BFloatTy(C, Type::BFloatTyID),
29 FloatTy(C, Type::FloatTyID), 30 FloatTy(C, Type::FloatTyID),
30 DoubleTy(C, Type::DoubleTyID), 31 DoubleTy(C, Type::DoubleTyID),
31 MetadataTy(C, Type::MetadataTyID), 32 MetadataTy(C, Type::MetadataTyID),
32 TokenTy(C, Type::TokenTyID), 33 TokenTy(C, Type::TokenTyID),
33 X86_FP80Ty(C, Type::X86_FP80TyID), 34 X86_FP80Ty(C, Type::X86_FP80TyID),
102 103
103 for (auto &CDSConstant : CDSConstants) 104 for (auto &CDSConstant : CDSConstants)
104 delete CDSConstant.second; 105 delete CDSConstant.second;
105 CDSConstants.clear(); 106 CDSConstants.clear();
106 107
107 // Destroy attributes.
108 for (FoldingSetIterator<AttributeImpl> I = AttrsSet.begin(),
109 E = AttrsSet.end(); I != E; ) {
110 FoldingSetIterator<AttributeImpl> Elem = I++;
111 delete &*Elem;
112 }
113
114 // Destroy attribute lists.
115 for (FoldingSetIterator<AttributeListImpl> I = AttrsLists.begin(),
116 E = AttrsLists.end();
117 I != E;) {
118 FoldingSetIterator<AttributeListImpl> Elem = I++;
119 delete &*Elem;
120 }
121
122 // Destroy attribute node lists. 108 // Destroy attribute node lists.
123 for (FoldingSetIterator<AttributeSetNode> I = AttrsSetNodes.begin(), 109 for (FoldingSetIterator<AttributeSetNode> I = AttrsSetNodes.begin(),
124 E = AttrsSetNodes.end(); I != E; ) { 110 E = AttrsSetNodes.end(); I != E; ) {
125 FoldingSetIterator<AttributeSetNode> Elem = I++; 111 FoldingSetIterator<AttributeSetNode> Elem = I++;
126 delete &*Elem; 112 delete &*Elem;