HomeSort by relevance Sort by last modified time
    Searched defs:TypeBuilder (Results 1 - 2 of 2) sorted by null

  /external/llvm/include/llvm/IR/
TypeBuilder.h 1 //===---- llvm/TypeBuilder.h - Builder for LLVM types -----------*- C++ -*-===//
10 // This file defines the TypeBuilder class, which is used as a convenient way to
24 /// TypeBuilder - This provides a uniform API for looking up types
27 /// ieee_float, ppc_fp128, etc. TypeBuilder<T, false> allows T to be
30 /// these. TypeBuilder<T, true> removes native C types from this set
45 /// Function::Create(TypeBuilder<types::i<8>(MyType*), true>::get(), ...)
47 /// complain that TypeBuilder<MyType, true>::get() doesn't exist. To fix this,
51 /// template<bool xcompile> class TypeBuilder<MyType, xcompile> {
57 /// TypeBuilder<types::i<32>, xcompile>::get(Context),
58 /// TypeBuilder<types::i<32>*, xcompile>::get(Context)
    [all...]
  /external/llvm/unittests/IR/
TypeBuilderTest.cpp 1 //===- llvm/unittest/TypeBuilderTest.cpp - TypeBuilder tests --------------===//
10 #include "llvm/IR/TypeBuilder.h"
20 EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, true>::get(getGlobalContext())));
21 EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder<void, false>::get(getGlobalContext())));
24 (TypeBuilder<void*, false>::get(getGlobalContext())));
26 (TypeBuilder<const void*, false>::get(getGlobalContext())));
28 (TypeBuilder<volatile void*, false>::get(getGlobalContext())));
30 (TypeBuilder<const volatile void*, false>::get(
35 EXPECT_EQ(Type::getInt8Ty(getGlobalContext()), (TypeBuilder<int8_t, false>::get(getGlobalContext())));
36 EXPECT_EQ(Type::getInt8Ty(getGlobalContext()), (TypeBuilder<uint8_t, false>::get(getGlobalContext())))
    [all...]

Completed in 170 milliseconds