@@ -246,11 +246,11 @@ Adding a fundamental type
246
246
247
247
add enum for the new type; add static ``Type* `` for this type
248
248
249
- #. ``llvm/lib/IR/Type.cpp `` and ``llvm/lib/IR /ValueTypes.cpp ``:
249
+ #. ``llvm/lib/IR/Type.cpp `` and ``llvm/lib/CodeGen /ValueTypes.cpp ``:
250
250
251
251
add mapping from ``TypeID `` => ``Type* ``; initialize the static ``Type* ``
252
252
253
- #. ``llvm/llvm /llvm-c/Core.cpp ``:
253
+ #. ``llvm/include /llvm-c/Core.h `` and `` llvm/lib/IR /Core.cpp ``:
254
254
255
255
add enum ``LLVMTypeKind `` and modify
256
256
``LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty) `` for the new type
@@ -265,12 +265,11 @@ Adding a fundamental type
265
265
266
266
#. ``llvm/lib/Bitcode/Writer/BitcodeWriter.cpp ``:
267
267
268
- modify ``static void WriteTypeTable(const ValueEnumerator &VE,
269
- BitstreamWriter &Stream) `` to serialize your type
268
+ modify ``void ModuleBitcodeWriter::writeTypeTable() `` to serialize your type
270
269
271
270
#. ``llvm/lib/Bitcode/Reader/BitcodeReader.cpp ``:
272
271
273
- modify ``bool BitcodeReader::ParseTypeType () `` to read your data type
272
+ modify ``Error BitcodeReader::parseTypeTableBody () `` to read your data type
274
273
275
274
#. ``include/llvm/Bitcode/LLVMBitCodes.h ``:
276
275
@@ -288,11 +287,11 @@ Adding a derived type
288
287
add new class to represent new class in the hierarchy; add forward
289
288
declaration to the TypeMap value type
290
289
291
- #. ``llvm/lib/IR/Type.cpp `` and ``llvm/lib/IR /ValueTypes.cpp ``:
290
+ #. ``llvm/lib/IR/Type.cpp `` and ``llvm/lib/CodeGen /ValueTypes.cpp ``:
292
291
293
292
add support for derived type, notably `enum TypeID ` and `is `, `get ` methods.
294
293
295
- #. ``llvm/llvm /llvm-c/Core.cpp ``:
294
+ #. ``llvm/include /llvm-c/Core.h `` and `` llvm/lib/IR /Core.cpp ``:
296
295
297
296
add enum ``LLVMTypeKind `` and modify
298
297
`LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty) ` for the new type
@@ -304,12 +303,11 @@ Adding a derived type
304
303
305
304
#. ``llvm/lib/Bitcode/Writer/BitcodeWriter.cpp ``:
306
305
307
- modify ``static void WriteTypeTable(const ValueEnumerator &VE,
308
- BitstreamWriter &Stream) `` to serialize your type
306
+ modify ``void ModuleBitcodeWriter::writeTypeTable() `` to serialize your type
309
307
310
308
#. ``llvm/lib/Bitcode/Reader/BitcodeReader.cpp ``:
311
309
312
- modify ``bool BitcodeReader::ParseTypeType () `` to read your data type
310
+ modify ``Error BitcodeReader::parseTypeTableBody () `` to read your data type
313
311
314
312
#. ``include/llvm/Bitcode/LLVMBitCodes.h ``:
315
313
0 commit comments