Displaying 2 results from an estimated 2 matches for "lang_hook".
Did you mean:
langhook
2005 Jan 03
0
[LLVMdev] [patch] native AMD64 support
..., type_decl;
>
> /* For i386 we use plain pointer to argument area. */
> - if (!TARGET_64BIT)
> + /* LLVM also uses the i386 standard version in 64-bit mode */
> + if (!TARGET_64BIT || EMIT_LLVM)
> return build_pointer_type (char_type_node);
>
> record = (*lang_hooks.types.make_type) (RECORD_TYPE);
> @@ -2858,7 +2865,8 @@
> int stdarg_p;
> int i;
>
> - if (!TARGET_64BIT)
> + /* LLVM also uses the i386 standard version in 64-bit mode */
> + if (!TARGET_64BIT || EMIT_LLVM)
> return;
>
> /* Indicate to allocate s...
2008 Apr 16
3
[LLVMdev] flag_unit_at_a_time and pass scheduling in llvm-gcc
In llvm-backend.cpp I see:
if (optimize > 1) {
if (flag_inline_trees > 1) // respect -fno-inline-functions
PM->add(createFunctionInliningPass()); // Inline small functions
if (flag_unit_at_a_time && !lang_hooks.flag_no_builtin())
PM->add(createSimplifyLibCallsPass()); // Library Call Optimizations
if (optimize > 2)
PM->add(createArgumentPromotionPass()); // Scalarize uninlined fn args
}
Shouldn't createFunctionInliningPass and createArgumentPromotionPass only be...