Skip to content

Instantly share code, notes, and snippets.

View brycelelbach's full-sized avatar

Bryce Adelstein Lelbach aka wash brycelelbach

  • NVIDIA
  • Sunnyvale, CA
View GitHub Profile
wash@Pegasus:~/development/nt2-wc$ git status
# On branch doc
nothing to commit (working directory clean)
wash@Pegasus:~/development/nt2-wc$ git pull
Already up-to-date.
wash@Pegasus:~/development/nt2-wc$ git status
# On branch doc
nothing to commit (working directory clean)
wash@Pegasus:~/development/nt2-wc$ cmake -G "Unix Makefiles"
-- [NT2] Target system : Unix (Linux 2.6.32-3-amd64)
wash@Pegasus:~/development/nt2-wc$ git branch
doc
* master
wash@Pegasus:~/development/nt2-wc$ git status
# On branch master
nothing to commit (working directory clean)
wash@Pegasus:~/development/nt2-wc$ git pull
Already up-to-date.
wash@Pegasus:~/development/nt2-wc$ cmake -G "Unix Makefiles"
-- [NT2] Target system : Unix (Linux 2.6.32-3-amd64)
wash@Pegasus:~/development/nt2-wc$ cmake -D CMAKE_CXX_COMPILER:FILEPATH=clang -D CMAKE_C_COMPILER:FILEPATH=clang -D CMAKE_LINKER:FILEPATH=llvm-ld .
-- The C compiler identification is Clang
-- The CXX compiler identification is Clang
-- Check for working C compiler: /usr/local/bin/clang
-- Check for working C compiler: /usr/local/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/clang
-- Check for working CXX compiler: /usr/local/bin/clang -- works
-- Detecting CXX compiler ABI info
[ 78%] Building CXX object unit/sdk/simd/CMakeFiles/access.simd.test.dir/access.cpp.o
clang: SemaTemplate.cpp:3150: clang::ExprResult clang::Sema::BuildExpressionFromIntegralTemplateArgument(const clang::TemplateArgument&, clang::SourceLocation): Assertion `Arg.getKind() == TemplateArgument::Integral && "Operation is only value for integral template arguments"' failed.
0 clang 0x00000000022a2154
1 clang 0x00000000022a2018
2 libpthread.so.0 0x00002ada81d4bf60
3 libc.so.6 0x00002ada82934175 gsignal + 53
4 libc.so.6 0x00002ada82936f80 abort + 384
5 libc.so.6 0x00002ada8292d2b1 __assert_fail + 241
6 clang 0x0000000001505582 clang::Sema::BuildExpressionFromIntegralTemplateArgument(clang::TemplateArgument const&, clang::SourceLocation) + 72
7 clang 0x000000000153b1e9
wash@Pegasus:~/development/nt2-wc$ cmake -D CMAKE_CXX_COMPILER:FILEPATH=clang++ CMAKE_C_COMPILER:FILEPATH=clang CMAKE_LINKER:FILEPATH=llvm-ld CMAKE_RANLIB:FILEPATH=llvm-ranlib CMAKE_AR:FILEPATH=llvm-ar .
-- The C compiler identification is GNU
-- The CXX compiler identification is Clang
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/local/bin/clang++
-- Check for working CXX compiler: /usr/local/bin/clang++ -- works
-- Detecting CXX compiler ABI info
wash@Pegasus:~/sandbox$ ls
README.txt test.cpp
wash@Pegasus:~/sandbox$ cat test.cpp
struct A { };
template<typename T> struct B { };
int main (void) {
A a;
B<A> b;
// Base
// Derived1 - derives from Base
// Derived2 - derives from Derived1
// Derived3 - derives from Derived2
or
// Derived3 - derives from Derived2
// Derived2 - derives from Derived1
// Derived1 - derives from Base
namespace llvm {
/// \brief The clang::TemplateName class is effectively a pointer.
template<>
class PointerLikeTypeTraits<clang::TemplateName> {
public:
static inline void *getAsVoidPointer(clang::TemplateName TN) {
return TN.getAsVoidPointer();
}
wash@Pegasus:~/sandbox$ cat foo.cpp
template<typename T> struct A {
typedef T type;
template<typename X> struct AA {
typedef X type;
};
};
namespace x {
is_not_void_ -> 2
aux::iter_fold_if_impl -> 1
vector5 -> 1
vector20 -> 1
protect -> 3
pair -> 3
begin_impl -> 1
not_ -> 5
bind0 -> 2
iter_fold_if_step_impl -> 1