llvm-project/llvm/tools/llvm-c-test
Nick Lewycky fe43168348 Creating a named struct requires only a Context and a name, but looking up a struct by name requires a Module. The method on Module merely accesses the LLVMContextImpl and no data from the module itself, so this patch moves getTypeByName to a static method on StructType that takes a Context and a name.
There's a small number of users of this function, they are all updated.

This updates the C API adding a new method LLVMGetTypeByName2 that takes a context and a name.

Differential Revision: https://reviews.llvm.org/D78793
2020-11-30 11:34:12 -08:00
..
CMakeLists.txt
attributes.c
calc.c
debuginfo.c Add debug info support for Swift/Clang APINotes. 2020-03-11 18:47:30 -07:00
diagnostic.c
disassemble.c
echo.cpp Creating a named struct requires only a Context and a name, but looking up a struct by name requires a Module. The method on Module merely accesses the LLVMContextImpl and no data from the module itself, so this patch moves getTypeByName to a static method on StructType that takes a Context and a name. 2020-11-30 11:34:12 -08:00
helpers.c
include-all.c [ORC] Remove OrcV1 APIs. 2020-10-18 21:02:44 -07:00
llvm-c-test.h
main.c C API: functions to get mask of a ShuffleVector 2020-09-25 16:01:05 -07:00
metadata.c
module.c
object.c
targets.c